mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
Simplify usage of Span in several places
This commit is contained in:
parent
ab303a16d1
commit
2676aeadfa
5 changed files with 18 additions and 18 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue