Skip to content

Commit

Permalink
v2.2.0 (#3139)
Browse files Browse the repository at this point in the history
## Proposed Changes

Cut release v2.2.0 including proposer boost.

## Additional Info

I also updated the clippy lints for the imminent release of Rust 1.60, although LH v2.2.0 will continue to compile using Rust 1.58 (our MSRV).
  • Loading branch information
michaelsproul committed Apr 5, 2022
1 parent 99bb554 commit bac7c3f
Show file tree
Hide file tree
Showing 10 changed files with 56 additions and 44 deletions.
74 changes: 44 additions & 30 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion beacon_node/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "beacon_node"
version = "2.1.5"
version = "2.2.0"
authors = ["Paul Hauner <paul@paulhauner.com>", "Age Manning <Age@AgeManning.com"]
edition = "2021"

Expand Down
1 change: 1 addition & 0 deletions beacon_node/beacon_chain/src/observed_aggregates.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ impl<T: TreeHash + SlotData + Consts, E: EthSpec> ObservedAggregates<T, E> {
/// Check to see if the `root` of `item` is in self.
///
/// `root` must equal `a.tree_hash_root()`.
#[allow(clippy::wrong_self_convention)]
pub fn is_known(&mut self, item: &T, root: Hash256) -> Result<bool, Error> {
let index = self.get_set_index(item.get_slot())?;

Expand Down
4 changes: 2 additions & 2 deletions beacon_node/eth1/src/http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ pub async fn get_deposit_logs_in_range(
}]);

let response_body = send_rpc_request(endpoint, "eth_getLogs", params, timeout).await?;
Ok(response_result_or_error(&response_body)
response_result_or_error(&response_body)
.map_err(|e| format!("eth_getLogs failed: {}", e))?
.as_array()
.cloned()
Expand All @@ -383,7 +383,7 @@ pub async fn get_deposit_logs_in_range(
})
})
.collect::<Result<Vec<Log>, String>>()
.map_err(|e| format!("Failed to get logs in range: {}", e))?)
.map_err(|e| format!("Failed to get logs in range: {}", e))
}

/// Sends an RPC request to `endpoint`, using a POST with the given `body`.
Expand Down
7 changes: 2 additions & 5 deletions beacon_node/network/src/sync/block_lookups/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -406,8 +406,8 @@ impl<T: BeaconChainTypes> BlockLookups<T> {
trace!(self.log, "Single block processing succeeded"; "block" => %root);
}

match result {
Err(e) => match e {
if let Err(e) = result {
match e {
BlockError::BlockIsAlreadyKnown => {
// No error here
}
Expand Down Expand Up @@ -435,9 +435,6 @@ impl<T: BeaconChainTypes> BlockLookups<T> {
}
}
}
},
Ok(()) => {
// No error here
}
}

Expand Down
2 changes: 1 addition & 1 deletion boot_node/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "boot_node"
version = "2.1.5"
version = "2.2.0"
authors = ["Sigma Prime <contact@sigmaprime.io>"]
edition = "2021"

Expand Down
2 changes: 1 addition & 1 deletion common/lighthouse_version/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ pub const VERSION: &str = git_version!(
// NOTE: using --match instead of --exclude for compatibility with old Git
"--match=thiswillnevermatchlol"
],
prefix = "Lighthouse/v2.1.5-",
prefix = "Lighthouse/v2.2.0-",
fallback = "unknown"
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ pub fn process_rewards_and_penalties<T: EthSpec>(
///
/// Spec v1.1.0
pub fn get_flag_index_deltas<T: EthSpec>(
deltas: &mut Vec<Delta>,
deltas: &mut [Delta],
state: &BeaconState<T>,
flag_index: usize,
total_active_balance: u64,
Expand Down Expand Up @@ -101,7 +101,7 @@ pub fn get_flag_weight(flag_index: usize) -> Result<u64, Error> {
}

pub fn get_inactivity_penalty_deltas<T: EthSpec>(
deltas: &mut Vec<Delta>,
deltas: &mut [Delta],
state: &BeaconState<T>,
participation_cache: &ParticipationCache,
spec: &ChainSpec,
Expand Down
2 changes: 1 addition & 1 deletion lcli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "lcli"
description = "Lighthouse CLI (modeled after zcli)"
version = "2.1.5"
version = "2.2.0"
authors = ["Paul Hauner <paul@paulhauner.com>"]
edition = "2021"

Expand Down
2 changes: 1 addition & 1 deletion lighthouse/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "lighthouse"
version = "2.1.5"
version = "2.2.0"
authors = ["Sigma Prime <contact@sigmaprime.io>"]
edition = "2021"
autotests = false
Expand Down

0 comments on commit bac7c3f

Please sign in to comment.