Skip to content

Commit 2f37bf4

Browse files
eserilevmichaelsproul
authored andcommitted
Fix more merge conflicts between unstable and release-v7.0.0
1 parent cbf1c04 commit 2f37bf4

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed

beacon_node/network/src/network_beacon_processor/sync_methods.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -831,10 +831,7 @@ impl<T: BeaconChainTypes> NetworkBeaconProcessor<T> {
831831
}
832832
// Penalise peers for sending us banned blocks.
833833
BlockError::KnownInvalidExecutionPayload(block_root) => {
834-
warn!(
835-
?block_root,
836-
"Received block known to be invalid",
837-
);
834+
warn!(?block_root, "Received block known to be invalid",);
838835
Err(ChainSegmentFailed {
839836
message: format!("Banned block: {block_root:?}"),
840837
peer_action: Some(PeerAction::Fatal),

beacon_node/src/config.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -918,11 +918,7 @@ pub fn get_config<E: EthSpec>(
918918
|s| match Hash256::from_str(s.strip_prefix("0x").unwrap_or(s).trim()) {
919919
Ok(block_root) => Some(block_root),
920920
Err(error) => {
921-
warn!(
922-
block_root = s,
923-
?error,
924-
"Unable to parse invalid block root",
925-
);
921+
warn!(block_root = s, ?error, "Unable to parse invalid block root",);
926922
None
927923
}
928924
},

lighthouse/tests/beacon_node.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2811,6 +2811,9 @@ fn data_column_publishing_delay_for_testing() {
28112811
Some(Duration::from_secs_f64(3.5f64))
28122812
);
28132813
});
2814+
}
2815+
2816+
#[test]
28142817
fn invalid_block_roots_flag() {
28152818
let dir = TempDir::new().expect("Unable to create temporary directory");
28162819
let mut file =

0 commit comments

Comments
 (0)