@@ -1795,6 +1795,13 @@ pub struct NodeConfig {
1795
1795
pub max_microblocks : u64 ,
1796
1796
pub wait_time_for_microblocks : u64 ,
1797
1797
pub wait_time_for_blocks : u64 ,
1798
+ /// Controls how frequently, in milliseconds, the nakamoto miner's relay thread acts on its own initiative
1799
+ /// (as opposed to responding to an event from the networking thread, etc.). This is roughly
1800
+ /// how frequently the miner checks if a new burnchain block has been processed.
1801
+ ///
1802
+ /// Default value of 10 seconds is reasonable in mainnet (where bitcoin blocks are ~10 minutes),
1803
+ /// but environments where burn blocks are more frequent may want to decrease this value.
1804
+ pub next_initiative_delay : u64 ,
1798
1805
pub prometheus_bind : Option < String > ,
1799
1806
pub marf_cache_strategy : Option < String > ,
1800
1807
pub marf_defer_hashing : bool ,
@@ -2080,6 +2087,7 @@ impl Default for NodeConfig {
2080
2087
max_microblocks : u16:: MAX as u64 ,
2081
2088
wait_time_for_microblocks : 30_000 ,
2082
2089
wait_time_for_blocks : 30_000 ,
2090
+ next_initiative_delay : 10_000 ,
2083
2091
prometheus_bind : None ,
2084
2092
marf_cache_strategy : None ,
2085
2093
marf_defer_hashing : true ,
@@ -2530,6 +2538,7 @@ pub struct NodeConfigFile {
2530
2538
pub max_microblocks : Option < u64 > ,
2531
2539
pub wait_time_for_microblocks : Option < u64 > ,
2532
2540
pub wait_time_for_blocks : Option < u64 > ,
2541
+ pub next_initiative_delay : Option < u64 > ,
2533
2542
pub prometheus_bind : Option < String > ,
2534
2543
pub marf_cache_strategy : Option < String > ,
2535
2544
pub marf_defer_hashing : Option < bool > ,
@@ -2590,6 +2599,9 @@ impl NodeConfigFile {
2590
2599
wait_time_for_blocks : self
2591
2600
. wait_time_for_blocks
2592
2601
. unwrap_or ( default_node_config. wait_time_for_blocks ) ,
2602
+ next_initiative_delay : self
2603
+ . next_initiative_delay
2604
+ . unwrap_or ( default_node_config. next_initiative_delay ) ,
2593
2605
prometheus_bind : self . prometheus_bind ,
2594
2606
marf_cache_strategy : self . marf_cache_strategy ,
2595
2607
marf_defer_hashing : self
0 commit comments