mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-08 21:59:10 +02:00
fuzz: Fix misplaced SeedRand::ZEROS
After commit fae63bf130 this must be
placed even before test_setup.
This commit is contained in:
@@ -21,6 +21,7 @@ using node::BlockAssembler;
|
||||
|
||||
FUZZ_TARGET(utxo_total_supply)
|
||||
{
|
||||
SeedRandomStateForTest(SeedRand::ZEROS);
|
||||
/** The testing setup that creates a chainman only (no chainstate) */
|
||||
ChainTestingSetup test_setup{
|
||||
ChainType::REGTEST,
|
||||
@@ -28,7 +29,6 @@ FUZZ_TARGET(utxo_total_supply)
|
||||
.extra_args = {"-testactivationheight=bip34@2"},
|
||||
},
|
||||
};
|
||||
SeedRandomStateForTest(SeedRand::ZEROS); // Can not be done before test_setup
|
||||
// Create chainstate
|
||||
test_setup.LoadVerifyActivateChainstate();
|
||||
auto& node{test_setup.m_node};
|
||||
|
||||
Reference in New Issue
Block a user