Skip to content

Commit fdc9bc6

Browse files
committed
feat: reevaluate InvalidTenureExtend rejection
This allows a miner that proposes a block with a time-based tenure extend to re-propose it and get it approved if initially, some signers thought it was too early.
1 parent dfaf385 commit fdc9bc6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stacks-signer/src/v0/signer.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1430,6 +1430,7 @@ fn should_reevaluate_block(block_info: &BlockInfo) -> bool {
14301430
| RejectReason::NoSortitionView
14311431
| RejectReason::ConnectivityIssues(_)
14321432
| RejectReason::TestingDirective
1433+
| RejectReason::InvalidTenureExtend
14331434
| RejectReason::NotRejected
14341435
| RejectReason::Unknown(_) => true,
14351436
RejectReason::ValidationFailed(_)
@@ -1441,8 +1442,7 @@ fn should_reevaluate_block(block_info: &BlockInfo) -> bool {
14411442
| RejectReason::InvalidMiner
14421443
| RejectReason::NotLatestSortitionWinner
14431444
| RejectReason::InvalidParentBlock
1444-
| RejectReason::DuplicateBlockFound
1445-
| RejectReason::InvalidTenureExtend => {
1445+
| RejectReason::DuplicateBlockFound => {
14461446
// No need to re-validate these types of rejections.
14471447
false
14481448
}

0 commit comments

Comments
 (0)