diff options
| author | Ben Woosley <[email protected]> | 2018-04-10 20:13:32 -0700 |
|---|---|---|
| committer | Ben Woosley <[email protected]> | 2018-04-10 20:13:32 -0700 |
| commit | 3450a9b25cd6dbc69daf946bd3a610681ee61317 (patch) | |
| tree | 7e72d27a4fdc3b92d53f660ac2dcce682f8d22a7 /src/policy/policy.cpp | |
| parent | Merge #12731: Support serialization as another type without casting (diff) | |
| download | discoin-3450a9b25cd6dbc69daf946bd3a610681ee61317.tar.xz discoin-3450a9b25cd6dbc69daf946bd3a610681ee61317.zip | |
Extract consts for WITNESS_V0 hash sizes
Diffstat (limited to 'src/policy/policy.cpp')
| -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 c3f65fb2a..5963bf371 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; |