refactor: update MAX_DISCONNECTED_TX_POOL from kb to bytes

This commit is contained in:
ismaelsadeeq
2023-09-25 13:00:52 +01:00
parent 5b4478418b
commit 81dfeddea7
4 changed files with 6 additions and 6 deletions

View File

@@ -579,7 +579,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{MAX_DISCONNECTED_TX_POOL_SIZE * 1000};
DisconnectedBlockTransactions unused_pool{MAX_DISCONNECTED_TX_POOL_BYTES};
BlockValidationState unused_state;
{
LOCK2(::cs_main, bg_chainstate.MempoolMutex());