This commit is contained in:
Roman Krasiuk
2022-11-18 12:45:26 +02:00
parent 8b6d457a19
commit cc3340d7d3

View File

@@ -153,7 +153,7 @@ pub struct TestConsensus {
/// Watcher over the forkchoice state
channel: (watch::Sender<ForkchoiceState>, watch::Receiver<ForkchoiceState>),
/// Flag whether the header validation should purposefully fail
fail_validation: AtomicBool, // Mutex<bool>,
fail_validation: AtomicBool,
}
impl Default for TestConsensus {
@@ -164,7 +164,7 @@ impl Default for TestConsensus {
finalized_block_hash: H256::zero(),
safe_block_hash: H256::zero(),
}),
fail_validation: AtomicBool::new(false), // Mutex::new(false),
fail_validation: AtomicBool::new(false),
}
}
}