aboutsummaryrefslogtreecommitdiff
path: root/src/consensus/validation.h
diff options
context:
space:
mode:
authorJohn Newbery <john@johnnewbery.com>2021-09-27 16:55:42 +0100
committerJohn Newbery <john@johnnewbery.com>2021-11-03 14:34:38 +0000
commit92a3aeecf6a82e9cbc9fda11022b0548efd24d05 (patch)
treeb7767b17918c211b159097329950a8f5d2bc6b4b /src/consensus/validation.h
parent36167faea92c97ddea7403280a5074073c8e5f90 (diff)
[validation] Add CChainState::ProcessTransaction()
This just calls through to AcceptToMemoryPool() internally, and is currently unused. Also add a new transaction validation failure reason TX_NO_MEMPOOL to indicate that there is no mempool.
Diffstat (limited to 'src/consensus/validation.h')
-rw-r--r--src/consensus/validation.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/consensus/validation.h b/src/consensus/validation.h
index c4d305434a..05416d0aca 100644
--- a/src/consensus/validation.h
+++ b/src/consensus/validation.h
@@ -53,6 +53,7 @@ enum class TxValidationResult {
*/
TX_CONFLICT,
TX_MEMPOOL_POLICY, //!< violated mempool's fee/size/descendant/RBF/etc limits
+ TX_NO_MEMPOOL, //!< this node does not have a mempool so can't validate the transaction
};
/** A "reason" why a block was invalid, suitable for determining whether the