Changeset View
Changeset View
Standalone View
Standalone View
src/validation.h
Show First 20 Lines • Show All 205 Lines • ▼ Show 20 Lines | |||||
* finalization. | * finalization. | ||||
* This value should be >> block propagation and validation time | * This value should be >> block propagation and validation time | ||||
*/ | */ | ||||
static const int64_t DEFAULT_MIN_FINALIZATION_DELAY = 2 * 60 * 60; | static const int64_t DEFAULT_MIN_FINALIZATION_DELAY = 2 * 60 * 60; | ||||
extern CScript COINBASE_FLAGS; | extern CScript COINBASE_FLAGS; | ||||
extern CCriticalSection cs_main; | extern CCriticalSection cs_main; | ||||
extern CTxMemPool g_mempool; | extern CTxMemPool g_mempool; | ||||
extern std::atomic_bool g_is_mempool_loaded; | |||||
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 Mutex g_best_block_mutex; | extern Mutex g_best_block_mutex; | ||||
extern std::condition_variable g_best_block_cv; | extern std::condition_variable g_best_block_cv; | ||||
extern uint256 g_best_block; | extern uint256 g_best_block; | ||||
extern std::atomic_bool fImporting; | extern std::atomic_bool fImporting; | ||||
extern std::atomic_bool fReindex; | extern std::atomic_bool fReindex; | ||||
▲ Show 20 Lines • Show All 502 Lines • ▼ Show 20 Lines | |||||
static const unsigned int REJECT_HIGHFEE = 0x100; | static const unsigned int REJECT_HIGHFEE = 0x100; | ||||
/** Block conflicts with a transaction already known */ | /** Block conflicts with a transaction already known */ | ||||
static const unsigned int REJECT_AGAINST_FINALIZED = 0x103; | static const unsigned int REJECT_AGAINST_FINALIZED = 0x103; | ||||
/** Get block file info entry for one block file */ | /** Get block file info entry for one block file */ | ||||
CBlockFileInfo *GetBlockFileInfo(size_t n); | CBlockFileInfo *GetBlockFileInfo(size_t n); | ||||
/** Dump the mempool to disk. */ | /** Dump the mempool to disk. */ | ||||
bool DumpMempool(); | bool DumpMempool(const CTxMemPool &pool); | ||||
/** Load the mempool from disk. */ | /** Load the mempool from disk. */ | ||||
bool LoadMempool(const Config &config); | bool LoadMempool(const Config &config, CTxMemPool &pool); | ||||
#endif // BITCOIN_VALIDATION_H | #endif // BITCOIN_VALIDATION_H |