aboutsummaryrefslogtreecommitdiff
path: root/src/validation.h
diff options
context:
space:
mode:
authorBen Woosley <ben.woosley@gmail.com>2019-03-07 09:54:44 -0500
committerBen Woosley <ben.woosley@gmail.com>2019-03-22 02:31:25 -0700
commiteffe81f7503d2ca3c88cfdea687f9f997f353e0d (patch)
treeede6c685bd0d9e24fd58aab6d4faa69baa69781f /src/validation.h
parentbb8ae2c41941d0776968f75cec0de89247e952dc (diff)
downloadbitcoin-effe81f7503d2ca3c88cfdea687f9f997f353e0d.tar.xz
Move g_is_mempool_loaded into CTxMemPool::m_is_loaded
So the loaded state is explicitly mempool-specific.
Diffstat (limited to 'src/validation.h')
-rw-r--r--src/validation.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/validation.h b/src/validation.h
index 4ef82ee2c7..0ff6c619b5 100644
--- a/src/validation.h
+++ b/src/validation.h
@@ -149,7 +149,6 @@ 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 GUARDED_BY(cs_main);
extern const std::string strMessageMagic;
@@ -486,10 +485,10 @@ static const unsigned int REJECT_HIGHFEE = 0x100;
CBlockFileInfo* GetBlockFileInfo(size_t n);
/** Dump the mempool to disk. */
-bool DumpMempool();
+bool DumpMempool(const CTxMemPool& pool);
/** Load the mempool from disk. */
-bool LoadMempool();
+bool LoadMempool(CTxMemPool& pool);
//! Check whether the block associated with this index entry is pruned or not.
inline bool IsBlockPruned(const CBlockIndex* pblockindex)