aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
authorAlex Morcos <[email protected]>2017-03-09 15:26:05 -0500
committerAlex Morcos <[email protected]>2017-05-10 11:45:27 -0400
commitc7447ec30348b338e77bc6429fbfac9f93549ef6 (patch)
treed29e992933923be972226b92b687cd081183e504 /src/init.cpp
parentExpose estimaterawfee (diff)
downloaddiscoin-c7447ec30348b338e77bc6429fbfac9f93549ef6.tar.xz
discoin-c7447ec30348b338e77bc6429fbfac9f93549ef6.zip
Track failures in fee estimation.
Start tracking transactions which fail to confirm within the target and are then evicted or otherwise leave mempool. Fix slight error in unit test.
Diffstat (limited to 'src/init.cpp')
-rw-r--r--src/init.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/init.cpp b/src/init.cpp
index f06c9e110..3a112fdc9 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -213,6 +213,7 @@ void Shutdown()
if (fFeeEstimatesInitialized)
{
+ ::feeEstimator.FlushUnconfirmed(::mempool);
fs::path est_path = GetDataDir() / FEE_ESTIMATES_FILENAME;
CAutoFile est_fileout(fsbridge::fopen(est_path, "wb"), SER_DISK, CLIENT_VERSION);
if (!est_fileout.IsNull())