mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-02 16:21:42 +00:00
Fix more merge conflicts between unstable and release-v7.0.0
This commit is contained in:
committed by
Michael Sproul
parent
cbf1c04a14
commit
2f37bf4de5
@@ -831,10 +831,7 @@ impl<T: BeaconChainTypes> NetworkBeaconProcessor<T> {
|
||||
}
|
||||
// Penalise peers for sending us banned blocks.
|
||||
BlockError::KnownInvalidExecutionPayload(block_root) => {
|
||||
warn!(
|
||||
?block_root,
|
||||
"Received block known to be invalid",
|
||||
);
|
||||
warn!(?block_root, "Received block known to be invalid",);
|
||||
Err(ChainSegmentFailed {
|
||||
message: format!("Banned block: {block_root:?}"),
|
||||
peer_action: Some(PeerAction::Fatal),
|
||||
|
||||
@@ -918,11 +918,7 @@ pub fn get_config<E: EthSpec>(
|
||||
|s| match Hash256::from_str(s.strip_prefix("0x").unwrap_or(s).trim()) {
|
||||
Ok(block_root) => Some(block_root),
|
||||
Err(error) => {
|
||||
warn!(
|
||||
block_root = s,
|
||||
?error,
|
||||
"Unable to parse invalid block root",
|
||||
);
|
||||
warn!(block_root = s, ?error, "Unable to parse invalid block root",);
|
||||
None
|
||||
}
|
||||
},
|
||||
|
||||
@@ -2811,6 +2811,9 @@ fn data_column_publishing_delay_for_testing() {
|
||||
Some(Duration::from_secs_f64(3.5f64))
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn invalid_block_roots_flag() {
|
||||
let dir = TempDir::new().expect("Unable to create temporary directory");
|
||||
let mut file =
|
||||
|
||||
Reference in New Issue
Block a user