@@ -1373,10 +1373,9 @@ bool AppInitMain(const util::Ref& context, NodeContext& node, interfaces::BlockA
1373
1373
// is not yet setup and may end up being set up twice if we
1374
1374
// need to reindex later.
1375
1375
1376
- // see Step 2: parameter interactions for more information about these
1377
1376
fListen = args.GetBoolArg (" -listen" , DEFAULT_LISTEN);
1378
1377
fDiscover = args.GetBoolArg (" -discover" , true );
1379
- g_relay_txes = ! args.GetBoolArg (" -blocksonly" , DEFAULT_BLOCKSONLY);
1378
+ const bool ignores_incoming_txs{ args.GetBoolArg (" -blocksonly" , DEFAULT_BLOCKSONLY)} ;
1380
1379
1381
1380
assert (!node.banman );
1382
1381
node.banman = MakeUnique<BanMan>(GetDataDir () / " banlist.dat" , &uiInterface, args.GetArg (" -bantime" , DEFAULT_MISBEHAVING_BANTIME));
@@ -1386,7 +1385,7 @@ bool AppInitMain(const util::Ref& context, NodeContext& node, interfaces::BlockA
1386
1385
assert (!node.fee_estimator );
1387
1386
// Don't initialize fee estimation with old data if we don't relay transactions,
1388
1387
// as they would never get updated.
1389
- if (g_relay_txes ) node.fee_estimator = std::make_unique<CBlockPolicyEstimator>();
1388
+ if (!ignores_incoming_txs ) node.fee_estimator = std::make_unique<CBlockPolicyEstimator>();
1390
1389
1391
1390
assert (!node.mempool );
1392
1391
int check_ratio = std::min<int >(std::max<int >(args.GetArg (" -checkmempool" , chainparams.DefaultConsistencyChecks () ? 1 : 0 ), 0 ), 1000000 );
@@ -1398,7 +1397,7 @@ bool AppInitMain(const util::Ref& context, NodeContext& node, interfaces::BlockA
1398
1397
1399
1398
assert (!node.peerman );
1400
1399
node.peerman = std::make_unique<PeerManager>(chainparams, *node.connman , node.banman .get (),
1401
- *node.scheduler , chainman, *node.mempool , !g_relay_txes );
1400
+ *node.scheduler , chainman, *node.mempool , ignores_incoming_txs );
1402
1401
RegisterValidationInterface (node.peerman .get ());
1403
1402
1404
1403
// sanitize comments per BIP-0014, format user agent and check total size
0 commit comments