Skip to content

Commit 2317895

Browse files
committed
feat: do not allow reorg when timing is equal to allowed time
Make it strictly `<`, not `<=` the `first_proposal_burn_block_timing`. This seems appropriate to err on the side of not allowing the reorg, and it also makes testing easier.
1 parent 6d2347f commit 2317895

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stacks-signer/src/chainstate.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ impl SortitionsView {
493493
0
494494
};
495495
if Duration::from_secs(proposal_to_sortition)
496-
<= *first_proposal_burn_block_timing
496+
< *first_proposal_burn_block_timing
497497
{
498498
info!(
499499
"Miner is not building off of most recent tenure. A tenure they reorg has already mined blocks, but the block was poorly timed, allowing the reorg.";

0 commit comments

Comments
 (0)