Bugfix: RPC: savemempool: Don't save until LoadMempool() is finished

This commit is contained in:
Jorge Timón
2018-01-12 21:38:48 +01:00
parent 624bee9659
commit cb1e319fe9
4 changed files with 9 additions and 4 deletions

View File

@ -158,6 +158,7 @@ extern CScript COINBASE_FLAGS;
extern CCriticalSection cs_main;
extern CBlockPolicyEstimator feeEstimator;
extern CTxMemPool mempool;
extern std::atomic_bool g_is_mempool_loaded;
typedef std::unordered_map<uint256, CBlockIndex*, BlockHasher> BlockMap;
extern BlockMap& mapBlockIndex;
extern uint64_t nLastBlockTx;