aboutsummaryrefslogtreecommitdiff
path: root/src/consensus/validation.h
diff options
context:
space:
mode:
authorJohn Newbery <john@johnnewbery.com>2019-04-28 16:26:31 -0500
committerJohn Newbery <john@johnnewbery.com>2019-10-29 15:46:45 -0400
commit3004d5a12d09d94bfc4dee2a8e8f2291996a4aaf (patch)
tree2d4d4423e4283cbf93406d016baf2ace0b519bc3 /src/consensus/validation.h
parentc428622a5bb1e37b2e6ab2c52791ac05d9271238 (diff)
[validation] Remove fMissingInputs from AcceptToMemoryPool()
Handle this failure in the same way as all other failures: call Invalid() with the reasons for the failure.
Diffstat (limited to 'src/consensus/validation.h')
-rw-r--r--src/consensus/validation.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/consensus/validation.h b/src/consensus/validation.h
index cdc3aecc1e..e602b9d5f3 100644
--- a/src/consensus/validation.h
+++ b/src/consensus/validation.h
@@ -27,12 +27,7 @@ enum class TxValidationResult {
*/
TX_RECENT_CONSENSUS_CHANGE,
TX_NOT_STANDARD, //!< didn't meet our local policy rules
- /**
- * transaction was missing some of its inputs
- * TODO: ATMP uses fMissingInputs and a valid ValidationState to indicate missing inputs.
- * Change ATMP to use TX_MISSING_INPUTS.
- */
- TX_MISSING_INPUTS,
+ TX_MISSING_INPUTS, //!< transaction was missing some of its inputs
TX_PREMATURE_SPEND, //!< transaction spends a coinbase too early, or violates locktime/sequence locks
/**
* Transaction might be missing a witness, have a witness prior to SegWit