Enable acceptstalefeeestimates by default

This commit is contained in:
Luke Dashjr 2023-07-01 23:48:35 +00:00
parent daa32813b8
commit 6ebba87d0c
2 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ static constexpr std::chrono::hours FEE_FLUSH_INTERVAL{1};
static constexpr std::chrono::hours MAX_FILE_AGE{60};
// Whether we allow importing a fee_estimates file older than MAX_FILE_AGE.
static constexpr bool DEFAULT_ACCEPT_STALE_FEE_ESTIMATES{false};
static constexpr bool DEFAULT_ACCEPT_STALE_FEE_ESTIMATES{true};
class AutoFile;
class CTxMemPoolEntry;

View File

@ -309,7 +309,7 @@ class EstimateFeeTest(BitcoinTestFramework):
os.utime(fee_dat, (last_modified_time, last_modified_time))
# Start node and ensure the fee_estimates.dat file was not read
self.start_node(0)
self.start_node(0, extra_args=["-acceptstalefeeestimates=0"])
assert_equal(self.nodes[0].estimatesmartfee(1)["errors"], ["Insufficient data or no feerate found"])