MCPcopy Create free account
hub / github.com/ElementsProject/elements / TxOutsFromJSON

Function TxOutsFromJSON

src/test/script_tests.cpp:1523–1533  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1521}
1522
1523static std::vector<CTxOut> TxOutsFromJSON(const UniValue& univalue)
1524{
1525 assert(univalue.isArray());
1526 std::vector<CTxOut> prevouts;
1527 for (size_t i = 0; i < univalue.size(); ++i) {
1528 CTxOut txout;
1529 SpanReader{SER_DISK, 0, ParseHex(univalue[i].get_str())} >> txout;
1530 prevouts.push_back(std::move(txout));
1531 }
1532 return prevouts;
1533}
1534
1535static CScriptWitness ScriptWitnessFromJSON(const UniValue& univalue)
1536{

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