Changeset View
Changeset View
Standalone View
Standalone View
src/validation.h
Show First 20 Lines • Show All 703 Lines • ▼ Show 20 Lines | |||||
/** | /** | ||||
* Reject codes greater or equal to this can be returned by AcceptToMemPool or | * Reject codes greater or equal to this can be returned by AcceptToMemPool or | ||||
* AcceptBlock for blocks/transactions, to signal internal conditions. They | * AcceptBlock for blocks/transactions, to signal internal conditions. They | ||||
* cannot and should not be sent over the P2P network. | * cannot and should not be sent over the P2P network. | ||||
*/ | */ | ||||
static const unsigned int REJECT_INTERNAL = 0x100; | static const unsigned int REJECT_INTERNAL = 0x100; | ||||
/** Too high fee. Can not be triggered by P2P transactions */ | /** Too high fee. Can not be triggered by P2P transactions */ | ||||
static const unsigned int REJECT_HIGHFEE = 0x100; | static const unsigned int REJECT_HIGHFEE = 0x100; | ||||
/** Transaction is already known (either in mempool or blockchain) */ | |||||
static const unsigned int REJECT_ALREADY_KNOWN = 0x101; | |||||
/** Transaction conflicts with a transaction already known */ | |||||
static const unsigned int REJECT_CONFLICT = 0x102; | |||||
/** 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(); | ||||
/** Load the mempool from disk. */ | /** Load the mempool from disk. */ | ||||
bool LoadMempool(const Config &config); | bool LoadMempool(const Config &config); | ||||
#endif // BITCOIN_VALIDATION_H | #endif // BITCOIN_VALIDATION_H |