aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames O'Beirne <james.obeirne@pm.me>2022-05-25 08:03:45 -0400
committerJames O'Beirne <james.obeirne@pm.me>2022-05-25 08:03:45 -0400
commitbe6d4315c150646cf672778e9232f086403e95df (patch)
tree4073ee7b999a0dafd21edf9d4e880b670d6f87a6
parent700808754884919916a5518e7ecfdabadef956d8 (diff)
doc: remove misleading AreInputsStandard() comment
This check isn't any longer just about bad pay-to-script-hash inputs; it also excludes any kind of nonstandard input, unknown witness versions, coinbases, etc.
-rw-r--r--src/validation.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/validation.cpp b/src/validation.cpp
index 44e908152c..9ad95c1c08 100644
--- a/src/validation.cpp
+++ b/src/validation.cpp
@@ -814,7 +814,6 @@ bool MemPoolAccept::PreChecks(ATMPArgs& args, Workspace& ws)
return false; // state filled in by CheckTxInputs
}
- // Check for non-standard pay-to-script-hash in inputs
if (fRequireStandard && !AreInputsStandard(tx, m_view)) {
return state.Invalid(TxValidationResult::TX_INPUTS_NOT_STANDARD, "bad-txns-nonstandard-inputs");
}