mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-09 22:28:51 +02:00
qa: correct off-by-one in utxo snapshot fuzz target
The chain starts at block 1, not genesis.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user