qa: correct off-by-one in utxo snapshot fuzz target

The chain starts at block 1, not genesis.
This commit is contained in:
Antoine Poinsot
2025-02-19 15:56:45 -05:00
parent 785649f397
commit d1527f6b88
2 changed files with 2 additions and 2 deletions

View File

@@ -101,7 +101,7 @@ void utxo_snapshot_fuzz(FuzzBufferType buffer)
std::vector<uint8_t> file_data{ConsumeRandomLengthByteVector(fuzzed_data_provider)};
outfile << Span{file_data};
} else {
int height{0};
int height{1};
for (const auto& block : *g_chain) {
auto coinbase{block->vtx.at(0)};
outfile << coinbase->GetHash();