Make feeEstimator its own global instance of CBlockPolicyEstimator

This commit is contained in:
Alex Morcos
2017-02-14 16:54:46 -05:00
parent e183ea2047
commit ae7327b832
5 changed files with 12 additions and 16 deletions

View File

@@ -39,6 +39,7 @@ class CChainParams;
class CInv;
class CConnman;
class CScriptCheck;
class CBlockPolicyEstimator;
class CTxMemPool;
class CValidationInterface;
class CValidationState;
@@ -152,6 +153,7 @@ struct BlockHasher
extern CScript COINBASE_FLAGS;
extern CCriticalSection cs_main;
extern CBlockPolicyEstimator feeEstimator;
extern CTxMemPool mempool;
typedef boost::unordered_map<uint256, CBlockIndex*, BlockHasher> BlockMap;
extern BlockMap mapBlockIndex;