mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-08 01:05:47 +00:00
Implement weak subjectivity safety checks (#7347)
Closes #7273 https://github.com/ethereum/consensus-specs/pull/4179 Co-Authored-By: Eitan Seri-Levi <eserilev@ucsc.edu> Co-Authored-By: Eitan Seri- Levi <eserilev@gmail.com> Co-Authored-By: Michael Sproul <michaelsproul@users.noreply.github.com> Co-Authored-By: dapplion <35266934+dapplion@users.noreply.github.com>
This commit is contained in:
@@ -295,6 +295,21 @@ fn paranoid_block_proposal_on() {
|
||||
.with_config(|config| assert!(config.chain.paranoid_block_proposal));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn ignore_ws_check_enabled() {
|
||||
CommandLineTest::new()
|
||||
.flag("ignore-ws-check", None)
|
||||
.run_with_zero_port()
|
||||
.with_config(|config| assert!(config.chain.ignore_ws_check));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn ignore_ws_check_default() {
|
||||
CommandLineTest::new()
|
||||
.run_with_zero_port()
|
||||
.with_config(|config| assert!(!config.chain.ignore_ws_check));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn reset_payload_statuses_default() {
|
||||
CommandLineTest::new()
|
||||
|
||||
Reference in New Issue
Block a user