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

@ -227,6 +227,7 @@ CAmount maxTxFee = DEFAULT_TRANSACTION_MAXFEE;
CBlockPolicyEstimator feeEstimator;
CTxMemPool mempool(&feeEstimator);
std::atomic_bool g_is_mempool_loaded{false};
/** Constant stuff for coinbase transactions we create: */
CScript COINBASE_FLAGS;