Skip to content

Commit 477eae6

Browse files
committed
fix: properly update last_burnchain_config
1 parent 54de9ab commit 477eae6

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

testnet/stacks-node/src/nakamoto_node/relayer.rs

+2-9
Original file line numberDiff line numberDiff line change
@@ -2144,15 +2144,11 @@ impl RelayerThread {
21442144
} else {
21452145
false
21462146
};
2147-
if burnchain_config_changed {
2148-
info!(
2149-
"Burnchain config changed; updating spend amount {}",
2150-
burnchain_config.burn_fee_cap
2151-
);
2152-
}
21532147

21542148
self.globals
21552149
.set_last_miner_spend_amount(burnchain_config.burn_fee_cap);
2150+
self.globals
2151+
.set_last_burnchain_config(burnchain_config.clone());
21562152

21572153
set_mining_spend_amount(
21582154
self.globals.get_miner_status(),
@@ -2170,9 +2166,6 @@ impl RelayerThread {
21702166
} else {
21712167
false
21722168
};
2173-
if miner_config_changed {
2174-
info!("Miner config changed; forcing a re-mine attempt");
2175-
}
21762169

21772170
self.globals.set_last_miner_config(miner_config);
21782171

0 commit comments

Comments
 (0)