mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-06-03 07:52:33 +02:00
Enable acceptstalefeeestimates by default
This commit is contained in:
parent
daa32813b8
commit
6ebba87d0c
@ -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;
|
||||
|
@ -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"])
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user