Skip to content

Commit f8169d1

Browse files
committed
fix: when validating a block, clone the blocks version
1 parent 8c99a12 commit f8169d1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

stackslib/src/net/api/postblock_proposal.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -538,6 +538,7 @@ impl NakamotoBlockProposal {
538538
}
539539

540540
let mut block = builder.mine_nakamoto_block(&mut tenure_tx);
541+
block.header.version = self.block.header.version;
541542
let size = builder.get_bytes_so_far();
542543
let cost = builder.tenure_finish(tenure_tx)?;
543544

0 commit comments

Comments
 (0)