Changeset View
Changeset View
Standalone View
Standalone View
src/validation.h
Show All 25 Lines | |||||
#include <set> | #include <set> | ||||
#include <string> | #include <string> | ||||
#include <utility> | #include <utility> | ||||
#include <vector> | #include <vector> | ||||
#include <atomic> | #include <atomic> | ||||
#include <boost/filesystem/path.hpp> | #include <boost/filesystem/path.hpp> | ||||
#include <boost/unordered_map.hpp> | #include <unordered_map> | ||||
class CBlockIndex; | class CBlockIndex; | ||||
class CBlockTreeDB; | class CBlockTreeDB; | ||||
class CBloomFilter; | class CBloomFilter; | ||||
class CChainParams; | class CChainParams; | ||||
class CConnman; | class CConnman; | ||||
class CInv; | class CInv; | ||||
class Config; | class Config; | ||||
▲ Show 20 Lines • Show All 126 Lines • ▼ Show 20 Lines | |||||
struct BlockHasher { | struct BlockHasher { | ||||
size_t operator()(const uint256 &hash) const { return hash.GetCheapHash(); } | size_t operator()(const uint256 &hash) const { return hash.GetCheapHash(); } | ||||
}; | }; | ||||
extern CScript COINBASE_FLAGS; | extern CScript COINBASE_FLAGS; | ||||
extern CCriticalSection cs_main; | extern CCriticalSection cs_main; | ||||
extern CTxMemPool mempool; | extern CTxMemPool mempool; | ||||
typedef boost::unordered_map<uint256, CBlockIndex *, BlockHasher> BlockMap; | typedef std::unordered_map<uint256, CBlockIndex *, BlockHasher> BlockMap; | ||||
extern BlockMap mapBlockIndex; | extern BlockMap mapBlockIndex; | ||||
extern uint64_t nLastBlockTx; | extern uint64_t nLastBlockTx; | ||||
extern uint64_t nLastBlockSize; | extern uint64_t nLastBlockSize; | ||||
extern const std::string strMessageMagic; | extern const std::string strMessageMagic; | ||||
extern CWaitableCriticalSection csBestBlock; | extern CWaitableCriticalSection csBestBlock; | ||||
extern CConditionVariable cvBlockChange; | extern CConditionVariable cvBlockChange; | ||||
extern std::atomic_bool fImporting; | extern std::atomic_bool fImporting; | ||||
extern bool fReindex; | extern bool fReindex; | ||||
▲ Show 20 Lines • Show All 495 Lines • Show Last 20 Lines |