Changeset View
Changeset View
Standalone View
Standalone View
src/consensus/validation.h
Show All 34 Lines | enum class TxValidationResult { | ||||
/** | /** | ||||
* Tx already in mempool or conflicts with a tx in the chain | * Tx already in mempool or conflicts with a tx in the chain | ||||
* Currently this is only used if the transaction already exists in the | * Currently this is only used if the transaction already exists in the | ||||
* mempool or on chain. | * mempool or on chain. | ||||
*/ | */ | ||||
TX_CONFLICT, | TX_CONFLICT, | ||||
//! violated mempool's fee/size/descendant/etc limits | //! violated mempool's fee/size/descendant/etc limits | ||||
TX_MEMPOOL_POLICY, | TX_MEMPOOL_POLICY, | ||||
//! this node does not have a mempool so can't validate the transaction | |||||
TX_NO_MEMPOOL, | |||||
}; | }; | ||||
/** | /** | ||||
* A "reason" why a block was invalid, suitable for determining whether the | * A "reason" why a block was invalid, suitable for determining whether the | ||||
* provider of the block should be banned/ignored/disconnected/etc. | * provider of the block should be banned/ignored/disconnected/etc. | ||||
* These are much more granular than the rejection codes, which may be more | * These are much more granular than the rejection codes, which may be more | ||||
* useful for some other use-cases. | * useful for some other use-cases. | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 90 Lines • Show Last 20 Lines |