MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / TxOutsFromJSON

Function TxOutsFromJSON

src/test/script_assets_tests.cpp:51–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51static std::vector<CTxOut> TxOutsFromJSON(const UniValue& univalue)
52{
53 assert(univalue.isArray());
54 std::vector<CTxOut> prevouts;
55 for (size_t i = 0; i < univalue.size(); ++i) {
56 CTxOut txout;
57 SpanReader{ParseHex(univalue[i].get_str())} >> txout;
58 prevouts.push_back(std::move(txout));
59 }
60 return prevouts;
61}
62
63static CScriptWitness ScriptWitnessFromJSON(const UniValue& univalue)
64{

Callers 1

AssetTestFunction · 0.70

Calls 4

ParseHexFunction · 0.85
isArrayMethod · 0.80
sizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected