aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorglozow <gloriajzhao@gmail.com>2023-09-06 16:25:15 +0100
committerglozow <gloriajzhao@gmail.com>2023-09-13 13:03:38 +0100
commit4313c77400eb8eaa8586db39a7e29a861772ea80 (patch)
tree6381f6a0e0602b3cfe294dc5088254c36ff02375 /src/test
parentcf5f1faa037e9a40a5029cc7dd4ee61454b62466 (diff)
make DisconnectedBlockTransactions responsible for its own memory management
Co-authored-by: Cory Fields <cory-nospam-@coryfields.com>
Diffstat (limited to 'src/test')
-rw-r--r--src/test/validation_chainstatemanager_tests.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/validation_chainstatemanager_tests.cpp b/src/test/validation_chainstatemanager_tests.cpp
index a793f56cba..7b7be4be9e 100644
--- a/src/test/validation_chainstatemanager_tests.cpp
+++ b/src/test/validation_chainstatemanager_tests.cpp
@@ -537,7 +537,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());