diff options
author | Pieter Wuille <pieter@wuille.net> | 2021-12-01 14:40:25 -0500 |
---|---|---|
committer | Pieter Wuille <pieter@wuille.net> | 2021-12-02 14:47:17 -0500 |
commit | 2c35a93b3cc19dc71d5664f9f61c24a04f419e35 (patch) | |
tree | 78a40228722d72de583ab39bbc932c186ec5fb39 /src/signet.cpp | |
parent | 26a1147ce56083d7aa820ac115c16b01e47d911c (diff) |
Generalize/simplify VectorReader into SpanReader
Diffstat (limited to 'src/signet.cpp')
-rw-r--r-- | src/signet.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/signet.cpp b/src/signet.cpp index aafd1999ee..d74a6ef05a 100644 --- a/src/signet.cpp +++ b/src/signet.cpp @@ -98,7 +98,7 @@ std::optional<SignetTxs> SignetTxs::Create(const CBlock& block, const CScript& c // no signet solution -- allow this to support OP_TRUE as trivial block challenge } else { try { - VectorReader v(SER_NETWORK, INIT_PROTO_VERSION, signet_solution, 0); + SpanReader v{SER_NETWORK, INIT_PROTO_VERSION, signet_solution, 0}; v >> tx_spending.vin[0].scriptSig; v >> tx_spending.vin[0].scriptWitness.stack; if (!v.empty()) return std::nullopt; // extraneous data encountered |