Add flag to disable attestation APIs

This commit is contained in:
Michael Sproul
2025-02-25 11:39:48 +11:00
parent 522b3cbaab
commit bbc1200b2d
5 changed files with 247 additions and 102 deletions

View File

@@ -2579,6 +2579,16 @@ fn light_client_http_server_disabled() {
});
}
#[test]
fn disable_attesting() {
CommandLineTest::new()
.flag("disable-attesting", None)
.run_with_zero_port()
.with_config(|config| {
assert!(config.chain.disable_attesting);
});
}
#[test]
fn gui_flag() {
CommandLineTest::new()