mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
Merge fd1c9e26d3 into merged_master (Bitcoin PR bitcoin/bitcoin#23653)
This commit is contained in:
commit
84d20582c4
9 changed files with 38 additions and 39 deletions
|
|
@ -1477,7 +1477,7 @@ BOOST_AUTO_TEST_CASE(script_HasValidOps)
|
|||
static CMutableTransaction TxFromHex(const std::string& str)
|
||||
{
|
||||
CMutableTransaction tx;
|
||||
VectorReader(SER_DISK, SERIALIZE_TRANSACTION_NO_WITNESS, ParseHex(str), 0) >> tx;
|
||||
SpanReader{SER_DISK, SERIALIZE_TRANSACTION_NO_WITNESS, ParseHex(str), 0} >> tx;
|
||||
return tx;
|
||||
}
|
||||
|
||||
|
|
@ -1487,7 +1487,7 @@ static std::vector<CTxOut> TxOutsFromJSON(const UniValue& univalue)
|
|||
std::vector<CTxOut> prevouts;
|
||||
for (size_t i = 0; i < univalue.size(); ++i) {
|
||||
CTxOut txout;
|
||||
VectorReader(SER_DISK, 0, ParseHex(univalue[i].get_str()), 0) >> txout;
|
||||
SpanReader{SER_DISK, 0, ParseHex(univalue[i].get_str()), 0} >> txout;
|
||||
prevouts.push_back(std::move(txout));
|
||||
}
|
||||
return prevouts;
|
||||
|
|
@ -1764,7 +1764,7 @@ BOOST_AUTO_TEST_CASE(bip341_keypath_test_vectors)
|
|||
for (const auto& vec : vectors.getValues()) {
|
||||
auto txhex = ParseHex(vec["given"]["rawUnsignedTx"].get_str());
|
||||
CMutableTransaction tx;
|
||||
VectorReader(SER_NETWORK, PROTOCOL_VERSION, txhex, 0) >> tx;
|
||||
SpanReader{SER_NETWORK, PROTOCOL_VERSION, txhex, 0} >> tx;
|
||||
std::vector<CTxOut> utxos;
|
||||
for (const auto& utxo_spent : vec["given"]["utxosSpent"].getValues()) {
|
||||
auto script_bytes = ParseHex(utxo_spent["scriptPubKey"].get_str());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue