Skip to content

Commit 03e691c

Browse files
committed
Reconsider blocks that were rejected with an InvalidParentBlock
Signed-off-by: Jacinta Ferrant <jacinta.ferrant@gmail.com>
1 parent a7646f9 commit 03e691c

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
@@ -1541,7 +1541,8 @@ fn should_reevaluate_block(block_info: &BlockInfo) -> bool {
15411541
| RejectReason::TestingDirective
15421542
| RejectReason::InvalidTenureExtend
15431543
| RejectReason::NotRejected
1544-
| RejectReason::Unknown(_) => true,
1544+
| RejectReason::Unknown(_)
1545+
| RejectReason::InvalidParentBlock => true,
15451546
RejectReason::ValidationFailed(_)
15461547
| RejectReason::RejectedInPriorRound
15471548
| RejectReason::SortitionViewMismatch
@@ -1550,7 +1551,6 @@ fn should_reevaluate_block(block_info: &BlockInfo) -> bool {
15501551
| RejectReason::PubkeyHashMismatch
15511552
| RejectReason::InvalidMiner
15521553
| RejectReason::NotLatestSortitionWinner
1553-
| RejectReason::InvalidParentBlock
15541554
| RejectReason::DuplicateBlockFound => {
15551555
// No need to re-validate these types of rejections.
15561556
false

0 commit comments

Comments
 (0)