diff options
author | Ben Woosley <ben.woosley@gmail.com> | 2018-04-10 20:13:32 -0700 |
---|---|---|
committer | Ben Woosley <ben.woosley@gmail.com> | 2018-04-10 20:13:32 -0700 |
commit | 3450a9b25cd6dbc69daf946bd3a610681ee61317 (patch) | |
tree | 7e72d27a4fdc3b92d53f660ac2dcce682f8d22a7 /src/policy | |
parent | 0a8054e7cd5c76d01e4ac7234e3883d05f6f5fdd (diff) |
Extract consts for WITNESS_V0 hash sizes
Diffstat (limited to 'src/policy')
-rw-r--r-- | src/policy/policy.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/policy/policy.cpp b/src/policy/policy.cpp index c3f65fb2ab..5963bf371a 100644 --- a/src/policy/policy.cpp +++ b/src/policy/policy.cpp @@ -230,7 +230,7 @@ bool IsWitnessStandard(const CTransaction& tx, const CCoinsViewCache& mapInputs) return false; // Check P2WSH standard limits - if (witnessversion == 0 && witnessprogram.size() == 32) { + if (witnessversion == 0 && witnessprogram.size() == WITNESS_V0_SCRIPTHASH_SIZE) { if (tx.vin[i].scriptWitness.stack.back().size() > MAX_STANDARD_P2WSH_SCRIPT_SIZE) return false; size_t sizeWitnessStack = tx.vin[i].scriptWitness.stack.size() - 1; |