mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-08 01:05:47 +00:00
Add a flag to disable getBlobs (#7853)
N/A Add a flag to disable get blobs. I configured the flag to disable it regardless of version because its most likely something we use for testing anyway.
This commit is contained in:
@@ -2532,6 +2532,25 @@ fn light_client_server_disabled() {
|
||||
});
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn get_blobs_disabled() {
|
||||
CommandLineTest::new()
|
||||
.flag("disable-get-blobs", None)
|
||||
.run_with_zero_port()
|
||||
.with_config(|config| {
|
||||
assert!(config.chain.disable_get_blobs);
|
||||
});
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn get_blobs_enabled() {
|
||||
CommandLineTest::new()
|
||||
.run_with_zero_port()
|
||||
.with_config(|config| {
|
||||
assert!(!config.chain.disable_get_blobs);
|
||||
});
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn light_client_http_server_disabled() {
|
||||
CommandLineTest::new()
|
||||
|
||||
Reference in New Issue
Block a user