A "reason" why a transaction was invalid, suitable for determining whether the provider of the transaction should be banned/ignored/disconnected/etc.
Synopsis
Declared in <consensus/validation.h>
enum class TxValidationResult : int;
Members
Name |
Description |
|
initial value. Tx has not yet been rejected |
|
invalid by consensus rules |
|
inputs (covered by txid) failed policy rules |
|
otherwise didn't meet our local policy rules |
|
transaction was missing some of its inputs |
|
transaction spends a coinbase too early, or violates locktime/sequence locks |
|
Transaction might have a witness prior to SegWit activation, or witness may have been malleated (which includes non‐standard witnesses). |
|
Transaction is missing a witness. |
|
Tx already in mempool or conflicts with a tx in the chain (if it conflicts with another tx in mempool, we use MEMPOOL_POLICY as it failed to reach the RBF threshold) Currently this is only used if the transaction already exists in the mempool or on chain. |
|
violated mempool's fee/size/descendant/RBF/etc limits |
|
this node does not have a mempool so can't validate the transaction |
|
fails some policy, but might be acceptable if submitted in a (different) package |
|
transaction was not validated because package failed |
Created with MrDocs