Skip to content

Commit bb7e57b

Browse files
committed
fix: comment case where block contains non-replay txs
1 parent 7968b49 commit bb7e57b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

stackslib/src/net/api/postblock_proposal.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -567,6 +567,10 @@ impl NakamotoBlockProposal {
567567
if let Some(ref mut replay_txs) = replay_txs_maybe {
568568
loop {
569569
let Some(replay_tx) = replay_txs.pop_front() else {
570+
// During transaction replay, we expect that the block only
571+
// contains transactions from the replay set. Thus, if we're here,
572+
// the block contains a transaction that is not in the replay set,
573+
// and we should reject the block.
570574
return Err(BlockValidateRejectReason {
571575
reason_code: ValidateRejectCode::InvalidTransactionReplay,
572576
reason: "Transaction is not in the replay set".into(),

0 commit comments

Comments
 (0)