Skip to content

Commit a303cde

Browse files
committed
Allow acceptstalefeeestimates on all networks
1 parent 1248d0d commit a303cde

2 files changed

Lines changed: 0 additions & 4 deletions

File tree

src/init.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1290,9 +1290,6 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info)
12901290
// as they would never get updated.
12911291
if (!peerman_opts.ignore_incoming_txs) {
12921292
bool read_stale_estimates = args.GetBoolArg("-acceptstalefeeestimates", DEFAULT_ACCEPT_STALE_FEE_ESTIMATES);
1293-
if (read_stale_estimates && (chainparams.GetChainType() != ChainType::REGTEST)) {
1294-
return InitError(strprintf(_("acceptstalefeeestimates is not supported on %s chain."), chainparams.GetChainTypeString()));
1295-
}
12961293
node.fee_estimator = std::make_unique<CBlockPolicyEstimator>(FeeestPath(args), read_stale_estimates);
12971294

12981295
// Flush estimates to disk periodically

test/functional/feature_config_args.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,6 @@ def run_test(self):
421421
self.test_invalid_command_line_options()
422422
self.test_ignored_conf()
423423
self.test_ignored_default_conf()
424-
self.test_acceptstalefeeestimates_arg_support()
425424
self.test_testnet3_deprecation_msg()
426425

427426
# Remove the -datadir argument so it doesn't override the config file

0 commit comments

Comments
 (0)