@@ -1413,7 +1413,6 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info)
1413
1413
// cache size calculations
1414
1414
CacheSizes cache_sizes = CalculateCacheSizes (args, g_enabled_filter_types.size ());
1415
1415
1416
- int64_t nMempoolSizeMax = args.GetIntArg (" -maxmempool" , DEFAULT_MAX_MEMPOOL_SIZE_MB) * 1000000 ;
1417
1416
LogPrintf (" Cache configuration:\n " );
1418
1417
LogPrintf (" * Using %.1f MiB for block index database\n " , cache_sizes.block_tree_db * (1.0 / 1024 / 1024 ));
1419
1418
if (args.GetBoolArg (" -txindex" , DEFAULT_TXINDEX)) {
@@ -1424,7 +1423,6 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info)
1424
1423
cache_sizes.filter_index * (1.0 / 1024 / 1024 ), BlockFilterTypeName (filter_type));
1425
1424
}
1426
1425
LogPrintf (" * Using %.1f MiB for chain state database\n " , cache_sizes.coins_db * (1.0 / 1024 / 1024 ));
1427
- LogPrintf (" * Using %.1f MiB for in-memory UTXO set (plus up to %.1f MiB of unused mempool space)\n " , cache_sizes.coins * (1.0 / 1024 / 1024 ), nMempoolSizeMax * (1.0 / 1024 / 1024 ));
1428
1426
1429
1427
assert (!node.mempool );
1430
1428
assert (!node.chainman );
@@ -1435,6 +1433,7 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info)
1435
1433
};
1436
1434
ApplyArgsManOptions (args, mempool_opts);
1437
1435
mempool_opts.check_ratio = std::clamp<int >(mempool_opts.check_ratio , 0 , 1'000'000 );
1436
+ LogPrintf (" * Using %.1f MiB for in-memory UTXO set (plus up to %.1f MiB of unused mempool space)\n " , cache_sizes.coins * (1.0 / 1024 / 1024 ), mempool_opts.max_size_bytes * (1.0 / 1024 / 1024 ));
1438
1437
1439
1438
for (bool fLoaded = false ; !fLoaded && !ShutdownRequested ();) {
1440
1439
node.mempool = std::make_unique<CTxMemPool>(mempool_opts);
0 commit comments