From be6d4315c150646cf672778e9232f086403e95df Mon Sep 17 00:00:00 2001 From: James O'Beirne Date: Wed, 25 May 2022 08:03:45 -0400 Subject: [PATCH] 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. --- src/validation.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/validation.cpp b/src/validation.cpp index 44e908152c2..9ad95c1c08d 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"); }