You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge #1510: Merge bitcoin#32530: node: cap -maxmempool and -dbcache for 32 bit systems.
8ea4b7a Merge bitcoin/bitcoin#32530: node: cap `-maxmempool` and `-dbcache` values for 32-bit (merge-script)
Pull request description:
Backport of bitcoin/bitcoin#32530
ACKs for top commit:
delta1:
ACK 8ea4b7a
Tree-SHA512: fc8aea76fd49e05ca2499c40e657451890d84b5424c124b594768821a231138eef64d9b331ccbfa7a2f0e224def45f7f4630a15a7a609d32b68ebfcba76ac64b
if (nMempoolSizeMax < 0 || nMempoolSizeMax < nMempoolSizeMin)
978
979
returnInitError(strprintf(_("-maxmempool must be at least %d MB"), std::ceil(nMempoolSizeMin / 1000000.0)));
980
+
constexprbool is_32bit{sizeof(void*) == 4};
981
+
if (is_32bit && nMempoolSizeMax > MAX_32BIT_MEMPOOL_MB * 1000000) {
982
+
returnInitError(strprintf(_("-maxmempool is set to %i but can't be over %i MB on 32-bit systems"), std::ceil(nMempoolSizeMax / 1000000.0), MAX_32BIT_MEMPOOL_MB));
983
+
}
979
984
// incremental relay fee sets the minimum feerate increase necessary for BIP 125 replacement in the mempool
980
985
// and the amount the mempool min fee increases above the feerate of txs evicted due to mempool limiting.
0 commit comments