Changeset View
Changeset View
Standalone View
Standalone View
src/validation.h
Show First 20 Lines • Show All 1,100 Lines • ▼ Show 20 Lines | |||||
int GetSpendHeight(const CCoinsViewCache &inputs); | int GetSpendHeight(const CCoinsViewCache &inputs); | ||||
/** | /** | ||||
* Determine what nVersion a new block should use. | * Determine what nVersion a new block should use. | ||||
*/ | */ | ||||
int32_t ComputeBlockVersion(const CBlockIndex *pindexPrev, | int32_t ComputeBlockVersion(const CBlockIndex *pindexPrev, | ||||
const Consensus::Params ¶ms); | const Consensus::Params ¶ms); | ||||
/** | |||||
* Reject codes greater or equal to this can be returned by AcceptToMemPool or | |||||
* AcceptBlock for blocks/transactions, to signal internal conditions. They | |||||
* cannot and should not be sent over the P2P network. | |||||
*/ | |||||
static const unsigned int REJECT_INTERNAL = 0x100; | |||||
/** Too high fee. Can not be triggered by P2P transactions */ | |||||
static const unsigned int REJECT_HIGHFEE = 0x100; | |||||
/** Block conflicts with a transaction already known */ | |||||
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(const CTxMemPool &pool); | bool DumpMempool(const CTxMemPool &pool); | ||||
/** Load the mempool from disk. */ | /** Load the mempool from disk. */ | ||||
bool LoadMempool(const Config &config, CTxMemPool &pool); | bool LoadMempool(const Config &config, CTxMemPool &pool); | ||||
//! Check whether the block associated with this index entry is pruned or not. | //! Check whether the block associated with this index entry is pruned or not. | ||||
bool IsBlockPruned(const CBlockIndex *pblockindex); | bool IsBlockPruned(const CBlockIndex *pblockindex); | ||||
#endif // BITCOIN_VALIDATION_H | #endif // BITCOIN_VALIDATION_H |