Merge ac9fa6ec78 into merged_master (Bitcoin PR bitcoin/bitcoin#28385)

This commit is contained in:
Byron Hambly 2025-08-04 12:47:38 +02:00
commit 4537155dea
No known key found for this signature in database
GPG key ID: DE8F6EA20A661697
9 changed files with 317 additions and 127 deletions

View file

@ -4,6 +4,7 @@
//
#include <chainparams.h>
#include <consensus/validation.h>
#include <kernel/disconnected_transactions.h>
#include <node/kernel_notifications.h>
#include <node/utxo_snapshot.h>
#include <random.h>
@ -539,7 +540,7 @@ BOOST_FIXTURE_TEST_CASE(chainstatemanager_snapshot_init, SnapshotTestSetup)
// it will initialize instead of attempting to complete validation.
//
// Note that this is not a realistic use of DisconnectTip().
DisconnectedBlockTransactions unused_pool;
DisconnectedBlockTransactions unused_pool{MAX_DISCONNECTED_TX_POOL_SIZE * 1000};
BlockValidationState unused_state;
{
LOCK2(::cs_main, bg_chainstate.MempoolMutex());