mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-19 05:48:31 +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.
|
// Penalise peers for sending us banned blocks.
|
||||||
BlockError::KnownInvalidExecutionPayload(block_root) => {
|
BlockError::KnownInvalidExecutionPayload(block_root) => {
|
||||||
warn!(
|
warn!(?block_root, "Received block known to be invalid",);
|
||||||
?block_root,
|
|
||||||
"Received block known to be invalid",
|
|
||||||
);
|
|
||||||
Err(ChainSegmentFailed {
|
Err(ChainSegmentFailed {
|
||||||
message: format!("Banned block: {block_root:?}"),
|
message: format!("Banned block: {block_root:?}"),
|
||||||
peer_action: Some(PeerAction::Fatal),
|
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()) {
|
|s| match Hash256::from_str(s.strip_prefix("0x").unwrap_or(s).trim()) {
|
||||||
Ok(block_root) => Some(block_root),
|
Ok(block_root) => Some(block_root),
|
||||||
Err(error) => {
|
Err(error) => {
|
||||||
warn!(
|
warn!(block_root = s, ?error, "Unable to parse invalid block root",);
|
||||||
block_root = s,
|
|
||||||
?error,
|
|
||||||
"Unable to parse invalid block root",
|
|
||||||
);
|
|
||||||
None
|
None
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -2811,6 +2811,9 @@ fn data_column_publishing_delay_for_testing() {
|
|||||||
Some(Duration::from_secs_f64(3.5f64))
|
Some(Duration::from_secs_f64(3.5f64))
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
fn invalid_block_roots_flag() {
|
fn invalid_block_roots_flag() {
|
||||||
let dir = TempDir::new().expect("Unable to create temporary directory");
|
let dir = TempDir::new().expect("Unable to create temporary directory");
|
||||||
let mut file =
|
let mut file =
|
||||||
|
|||||||
Reference in New Issue
Block a user