diff options
author | Pieter Wuille <pieter@wuille.net> | 2020-10-21 13:45:02 -0700 |
---|---|---|
committer | Pieter Wuille <pieter@wuille.net> | 2020-11-26 14:56:25 -0800 |
commit | 84e29c7c0141b52044020ec0c5dfa8a462b7e97f (patch) | |
tree | c1e2484fcf25d2052c5f00c3bfdf49b491f417e3 /src/validation.cpp | |
parent | f867cbcc268a3bfaeef5510a7e40e6d3c0818b6d (diff) | |
download | bitcoin-84e29c7c0141b52044020ec0c5dfa8a462b7e97f.tar.xz |
Mention in validation that IsWitnessStandard tests for P2TR
Diffstat (limited to 'src/validation.cpp')
-rw-r--r-- | src/validation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/validation.cpp b/src/validation.cpp index 71402ef263..5ddee092bf 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -696,7 +696,7 @@ bool MemPoolAccept::PreChecks(ATMPArgs& args, Workspace& ws) return state.Invalid(TxValidationResult::TX_INPUTS_NOT_STANDARD, "bad-txns-nonstandard-inputs"); } - // Check for non-standard witness in P2WSH + // Check for non-standard witnesses. if (tx.HasWitness() && fRequireStandard && !IsWitnessStandard(tx, m_view)) return state.Invalid(TxValidationResult::TX_WITNESS_MUTATED, "bad-witness-nonstandard"); |