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

Function TxInErrorToJSON

src/rpcrawtransaction.cpp:502–511  ·  view source on GitHub ↗

Pushes a JSON object for script verification or signing errors to vErrorsRet. */

Source from the content-addressed store, hash-verified

500
501/** Pushes a JSON object for script verification or signing errors to vErrorsRet. */
502static void TxInErrorToJSON(const CTxIn& txin, UniValue& vErrorsRet, const std::string& strMessage)
503{
504 UniValue entry(UniValue::VOBJ);
505 entry.push_back(Pair("txid", txin.prevout.hash.ToString()));
506 entry.push_back(Pair("vout", (uint64_t)txin.prevout.n));
507 entry.push_back(Pair("scriptSig", HexStr(txin.scriptSig.begin(), txin.scriptSig.end())));
508 entry.push_back(Pair("sequence", (uint64_t)txin.nSequence));
509 entry.push_back(Pair("error", strMessage));
510 vErrorsRet.push_back(entry);
511}
512
513UniValue signrawtransaction(const UniValue& params, bool fHelp)
514{

Callers 1

signrawtransactionFunction · 0.85

Calls 6

PairFunction · 0.85
HexStrFunction · 0.85
push_backMethod · 0.45
ToStringMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected