Skip to content

Commit 1a2cb76

Browse files
committed
backport: Merge bitcoin#27810: fuzz: Partially revert bitcoin#27780
Backport of bitcoin#27810 Automated backport — cherry-pick of `a1db4476bd`.
1 parent 6cbeb3a commit 1a2cb76

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/test/fuzz/utxo_total_supply.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -147,13 +147,13 @@ FUZZ_TARGET(utxo_total_supply)
147147
current_block->hashMerkleRoot = BlockMerkleRoot(*current_block);
148148
const bool was_valid = !MineBlock(node, current_block).IsNull();
149149

150-
if (duplicate_coinbase_height == ActiveHeight()) {
151-
// we mined the duplicate coinbase
152-
assert(current_block->vtx.at(0)->vin.at(0).scriptSig == duplicate_coinbase_script);
153-
}
154-
155150
const auto prev_utxo_stats = utxo_stats;
156151
if (was_valid) {
152+
if (duplicate_coinbase_height == ActiveHeight()) {
153+
// we mined the duplicate coinbase
154+
assert(current_block->vtx.at(0)->vin.at(0).scriptSig == duplicate_coinbase_script);
155+
}
156+
157157
circulation += GetBlockSubsidy(ActiveTip(), Params().GetConsensus());
158158
}
159159

0 commit comments

Comments
 (0)