We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f8169d1 commit 4e18e0fCopy full SHA for 4e18e0f
stackslib/src/net/api/postblock_proposal.rs
@@ -538,6 +538,9 @@ impl NakamotoBlockProposal {
538
}
539
540
let mut block = builder.mine_nakamoto_block(&mut tenure_tx);
541
+ // Override the block version with the one from the proposal. This must be
542
+ // done before computing the block hash, because the block hash includes the
543
+ // version in its computation.
544
block.header.version = self.block.header.version;
545
let size = builder.get_bytes_so_far();
546
let cost = builder.tenure_finish(tenure_tx)?;
0 commit comments