diff options
| author | Pieter Wuille <[email protected]> | 2020-03-29 17:42:38 -0700 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2020-05-12 14:19:40 -0700 |
| commit | 2676aeadfa0e43dcaaccc4720623cdfe0beed528 (patch) | |
| tree | f68ed37715bddfefb1b8df1595bd91b307b32903 /src/script/interpreter.cpp | |
| parent | Add Span constructors for arrays and vectors (diff) | |
| download | discoin-2676aeadfa0e43dcaaccc4720623cdfe0beed528.tar.xz discoin-2676aeadfa0e43dcaaccc4720623cdfe0beed528.zip | |
Simplify usage of Span in several places
Diffstat (limited to 'src/script/interpreter.cpp')
| -rw-r--r-- | src/script/interpreter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/interpreter.cpp b/src/script/interpreter.cpp index 23d5b72a5..9415bba58 100644 --- a/src/script/interpreter.cpp +++ b/src/script/interpreter.cpp @@ -1522,7 +1522,7 @@ static bool ExecuteWitnessScript(const Span<const valtype>& stack_span, const CS static bool VerifyWitnessProgram(const CScriptWitness& witness, int witversion, const std::vector<unsigned char>& program, unsigned int flags, const BaseSignatureChecker& checker, ScriptError* serror) { CScript scriptPubKey; - Span<const valtype> stack = MakeSpan(witness.stack); + Span<const valtype> stack{witness.stack}; if (witversion == 0) { if (program.size() == WITNESS_V0_SCRIPTHASH_SIZE) { |