aboutsummaryrefslogtreecommitdiff
path: root/src/script/interpreter.cpp
diff options
context:
space:
mode:
authorPieter Wuille <[email protected]>2020-03-29 17:42:38 -0700
committerPieter Wuille <[email protected]>2020-05-12 14:19:40 -0700
commit2676aeadfa0e43dcaaccc4720623cdfe0beed528 (patch)
treef68ed37715bddfefb1b8df1595bd91b307b32903 /src/script/interpreter.cpp
parentAdd Span constructors for arrays and vectors (diff)
downloaddiscoin-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.cpp2
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) {