## 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).
This commit is contained in:
Michael Sproul
2022-04-05 02:53:09 +00:00
parent 99bb55472c
commit bac7c3fa54
10 changed files with 56 additions and 44 deletions

View File

@@ -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"

View File

@@ -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())?;

View File

@@ -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()
@@ -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`.

View File

@@ -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
}
@@ -435,9 +435,6 @@ impl<T: BeaconChainTypes> BlockLookups<T> {
}
}
}
},
Ok(()) => {
// No error here
}
}