From 92a3aeecf6a82e9cbc9fda11022b0548efd24d05 Mon Sep 17 00:00:00 2001 From: John Newbery Date: Mon, 27 Sep 2021 16:55:42 +0100 Subject: [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. --- src/consensus/validation.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/consensus') 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 -- cgit v1.2.3