There was an error while loading. Please reload this page.
1 parent 6cbeb3a commit 1a2cb76Copy full SHA for 1a2cb76
1 file changed
src/test/fuzz/utxo_total_supply.cpp
@@ -147,13 +147,13 @@ FUZZ_TARGET(utxo_total_supply)
147
current_block->hashMerkleRoot = BlockMerkleRoot(*current_block);
148
const bool was_valid = !MineBlock(node, current_block).IsNull();
149
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
-
155
const auto prev_utxo_stats = utxo_stats;
156
if (was_valid) {
+ if (duplicate_coinbase_height == ActiveHeight()) {
+ // we mined the duplicate coinbase
+ assert(current_block->vtx.at(0)->vin.at(0).scriptSig == duplicate_coinbase_script);
+ }
+
157
circulation += GetBlockSubsidy(ActiveTip(), Params().GetConsensus());
158
}
159
0 commit comments