@@ -1168,7 +1168,9 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info)
1168
1168
1169
1169
fListen = args.GetBoolArg (" -listen" , DEFAULT_LISTEN);
1170
1170
fDiscover = args.GetBoolArg (" -discover" , true );
1171
- const bool ignores_incoming_txs{args.GetBoolArg (" -blocksonly" , DEFAULT_BLOCKSONLY)};
1171
+
1172
+ PeerManager::Options peerman_opts{};
1173
+ ApplyArgsManOptions (args, peerman_opts);
1172
1174
1173
1175
{
1174
1176
@@ -1216,7 +1218,7 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info)
1216
1218
assert (!node.fee_estimator );
1217
1219
// Don't initialize fee estimation with old data if we don't relay transactions,
1218
1220
// as they would never get updated.
1219
- if (!ignores_incoming_txs ) {
1221
+ if (!peerman_opts. ignore_incoming_txs ) {
1220
1222
bool read_stale_estimates = args.GetBoolArg (" -acceptstalefeeestimates" , DEFAULT_ACCEPT_STALE_FEE_ESTIMATES);
1221
1223
if (read_stale_estimates && (chainparams.GetChainType () != ChainType::REGTEST)) {
1222
1224
return InitError (strprintf (_ (" acceptstalefeeestimates is not supported on %s chain." ), chainparams.GetChainTypeString ()));
@@ -1539,10 +1541,6 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info)
1539
1541
1540
1542
ChainstateManager& chainman = *Assert (node.chainman );
1541
1543
1542
-
1543
- PeerManager::Options peerman_opts{};
1544
- ApplyArgsManOptions (args, peerman_opts);
1545
-
1546
1544
assert (!node.peerman );
1547
1545
node.peerman = PeerManager::make (*node.connman , *node.addrman ,
1548
1546
node.banman .get (), chainman,
0 commit comments