diff options
author | Pieter Wuille <pieter@wuille.net> | 2020-10-15 20:57:58 -0700 |
---|---|---|
committer | Pieter Wuille <pieter@wuille.net> | 2020-10-30 15:52:19 -0700 |
commit | 525cbd425e2f6a1dbd0febc53d7ada22cec4661f (patch) | |
tree | 20e972c680f5d5cb3d22060d9abb730a33d6e7ea /src/policy/policy.h | |
parent | 42b66a6b814bca130a9ccf0a3f747cf33d628232 (diff) |
Only relay Taproot spends if next block has it active
Diffstat (limited to 'src/policy/policy.h')
-rw-r--r-- | src/policy/policy.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/policy/policy.h b/src/policy/policy.h index 51d67b9390..8090dff4c6 100644 --- a/src/policy/policy.h +++ b/src/policy/policy.h @@ -95,10 +95,11 @@ bool IsStandard(const CScript& scriptPubKey, TxoutType& whichType); bool IsStandardTx(const CTransaction& tx, bool permit_bare_multisig, const CFeeRate& dust_relay_fee, std::string& reason); /** * Check for standard transaction types - * @param[in] mapInputs Map of previous transactions that have outputs we're spending + * @param[in] mapInputs Map of previous transactions that have outputs we're spending + * @param[in] taproot_active Whether or taproot consensus rules are active (used to decide whether spends of them are permitted) * @return True if all inputs (scriptSigs) use only standard transaction forms */ -bool AreInputsStandard(const CTransaction& tx, const CCoinsViewCache& mapInputs); +bool AreInputsStandard(const CTransaction& tx, const CCoinsViewCache& mapInputs, bool taproot_active); /** * Check if the transaction is over standard P2WSH resources limit: * 3600bytes witnessScript size, 80bytes per witness stack element, 100 witness stack elements |