File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
testnet/stacks-node/src/nakamoto_node Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -1408,13 +1408,11 @@ impl ParentStacksBlockInfo {
1408
1408
let burn_chain_tip = SortitionDB :: get_canonical_burn_chain_tip ( burn_db. conn ( ) )
1409
1409
. expect ( "FATAL: failed to query sortition DB for canonical burn chain tip" ) ;
1410
1410
1411
- let allow_late = if let MinerReason :: BlockFound { late } = reason {
1412
- * late
1413
- } else {
1414
- false
1415
- } ;
1416
-
1417
- if !allow_late && burn_chain_tip. consensus_hash != check_burn_block. consensus_hash {
1411
+ // if we're mining a tenure that we were late to initialize, allow the burn tipped
1412
+ // to be slightly stale
1413
+ if !reason. is_late_block ( )
1414
+ && burn_chain_tip. consensus_hash != check_burn_block. consensus_hash
1415
+ {
1418
1416
info ! (
1419
1417
"New canonical burn chain tip detected. Will not try to mine." ;
1420
1418
"new_consensus_hash" => %burn_chain_tip. consensus_hash,
You can’t perform that action at this time.
0 commit comments