From eccb8f7735d2c5e7b84e4171207959ed5a9a2849 Mon Sep 17 00:00:00 2001 From: DeckerSU Date: Thu, 27 Jan 2022 22:11:54 +0300 Subject: [PATCH] CTxMemPool::WriteFeeEstimates: fix version required to read https://github.com/KomodoPlatform/komodo/issues/523 After these changes version required to read in fee_estimates.dat will be set to 0x111d4 (70100) by default, instead of wrong (legacy codebase) 109900 value. So, the error ERROR: CTxMemPool::ReadFeeEstimates() on wallet startup, mentioned above wouldn't appear. Delete of existing fee_estimates.dat before upgrade to the new version of wallet with with commit included - also could be recommended. --- src/txmempool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/txmempool.cpp b/src/txmempool.cpp index a1294fb8..5eea039a 100644 --- a/src/txmempool.cpp +++ b/src/txmempool.cpp @@ -776,7 +776,7 @@ CTxMemPool::WriteFeeEstimates(CAutoFile& fileout) const { try { LOCK(cs); - fileout << 109900; // version required to read: 0.10.99 or later + fileout << 70100; // version required to read: 0.7.1.0 or later fileout << CLIENT_VERSION; // version that wrote the file minerPolicyEstimator->Write(fileout); }