diff options
author | Matt Corallo <git@bluematt.me> | 2017-12-04 09:34:46 -0500 |
---|---|---|
committer | Matt Corallo <git@bluematt.me> | 2017-12-04 09:34:46 -0500 |
commit | fd4d80a2f8d2ced8ffedf46e4a70ff4f7a05663f (patch) | |
tree | 254249b24bca9724a582819f053639ae8a16b670 /src/validation.h | |
parent | e104f0fb7e464f8cadb4cbc99e8329d22c35c36a (diff) |
Create initial CChainState to hold chain state information
Diffstat (limited to 'src/validation.h')
-rw-r--r-- | src/validation.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/validation.h b/src/validation.h index 254f3e0754..0ddeb97aa6 100644 --- a/src/validation.h +++ b/src/validation.h @@ -159,7 +159,7 @@ extern CCriticalSection cs_main; extern CBlockPolicyEstimator feeEstimator; extern CTxMemPool mempool; typedef std::unordered_map<uint256, CBlockIndex*, BlockHasher> BlockMap; -extern BlockMap mapBlockIndex; +extern BlockMap& mapBlockIndex; extern uint64_t nLastBlockTx; extern uint64_t nLastBlockWeight; extern const std::string strMessageMagic; @@ -294,8 +294,6 @@ void PruneOneBlockFile(const int fileNumber); */ void UnlinkPrunedFiles(const std::set<int>& setFilesToPrune); -/** Create a new block index entry for a given block hash */ -CBlockIndex * InsertBlockIndex(uint256 hash); /** Flush all state, indexes and buffers to disk. */ void FlushStateToDisk(); /** Prune block files and flush state to disk. */ @@ -441,7 +439,7 @@ bool InvalidateBlock(CValidationState& state, const CChainParams& chainparams, C bool ResetBlockFailureFlags(CBlockIndex *pindex); /** The currently-connected chain of blocks (protected by cs_main). */ -extern CChain chainActive; +extern CChain& chainActive; /** Global variable that points to the coins database (protected by cs_main) */ extern std::unique_ptr<CCoinsViewDB> pcoinsdbview; |