MCPcopy Create free account
hub / github.com/bitcoinxt/bitcoinxt / GetJSON

Method GetJSON

src/test/script_tests.cpp:374–389  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

372 }
373
374 UniValue GetJSON()
375 {
376 DoPush();
377 UniValue array(UniValue::VARR);
378 if (nValue != 0) {
379 UniValue amount(UniValue::VARR);
380 amount.push_back(ValueFromAmount(nValue));
381 array.push_back(amount);
382 }
383 array.push_back(FormatScript(spendTx.vin[0].scriptSig));
384 array.push_back(FormatScript(creditTx->vout[0].scriptPubKey));
385 array.push_back(FormatScriptFlags(flags));
386 array.push_back(FormatScriptError((ScriptError_t)scriptError));
387 array.push_back(comment);
388 return array;
389 }
390
391 std::string GetComment()
392 {

Callers 1

BOOST_FOREACHFunction · 0.80

Calls 5

ValueFromAmountFunction · 0.85
FormatScriptFunction · 0.85
FormatScriptFlagsFunction · 0.85
FormatScriptErrorFunction · 0.85
push_backMethod · 0.45

Tested by

no test coverage detected