@@ -670,6 +670,9 @@ impl Config {
670670 // chainstate fault_injection activation for hide_blocks.
671671 // you can't set this in the config file.
672672 fault_injection_hide_blocks : false ,
673+ chain_liveness_poll_time_secs : node
674+ . chain_liveness_poll_time_secs
675+ . unwrap_or ( default_node_config. chain_liveness_poll_time_secs ) ,
673676 } ;
674677 ( node_config, node. bootstrap_node , node. deny_nodes )
675678 }
@@ -1455,6 +1458,9 @@ pub struct NodeConfig {
14551458 // fault injection for hiding blocks.
14561459 // not part of the config file.
14571460 pub fault_injection_hide_blocks : bool ,
1461+ /// At most, how often should the chain-liveness thread
1462+ /// wake up the chains-coordinator. Defaults to 300s (5 min).
1463+ pub chain_liveness_poll_time_secs : u64 ,
14581464}
14591465
14601466#[ derive( Clone , Debug ) ]
@@ -1732,6 +1738,7 @@ impl NodeConfig {
17321738 always_use_affirmation_maps : false ,
17331739 require_affirmed_anchor_blocks : true ,
17341740 fault_injection_hide_blocks : false ,
1741+ chain_liveness_poll_time_secs : 300 ,
17351742 }
17361743 }
17371744
@@ -1933,6 +1940,9 @@ pub struct NodeConfigFile {
19331940 pub use_test_genesis_chainstate : Option < bool > ,
19341941 pub always_use_affirmation_maps : Option < bool > ,
19351942 pub require_affirmed_anchor_blocks : Option < bool > ,
1943+ /// At most, how often should the chain-liveness thread
1944+ /// wake up the chains-coordinator. Defaults to 300s (5 min).
1945+ pub chain_liveness_poll_time_secs : Option < u64 > ,
19361946}
19371947
19381948#[ derive( Clone , Deserialize , Debug ) ]
0 commit comments