Changeset View
Changeset View
Standalone View
Standalone View
src/rpc/rawtransaction_util.cpp
Show First 20 Lines • Show All 153 Lines • ▼ Show 20 Lines | |||||
/** | /** | ||||
* Pushes a JSON object for script verification or signing errors to vErrorsRet. | * Pushes a JSON object for script verification or signing errors to vErrorsRet. | ||||
*/ | */ | ||||
static void TxInErrorToJSON(const CTxIn &txin, UniValue &vErrorsRet, | static void TxInErrorToJSON(const CTxIn &txin, UniValue &vErrorsRet, | ||||
const std::string &strMessage) { | const std::string &strMessage) { | ||||
UniValue entry(UniValue::VOBJ); | UniValue entry(UniValue::VOBJ); | ||||
entry.pushKV("txid", txin.prevout.GetTxId().ToString()); | entry.pushKV("txid", txin.prevout.GetTxId().ToString()); | ||||
entry.pushKV("vout", uint64_t(txin.prevout.GetN())); | entry.pushKV("vout", uint64_t(txin.prevout.GetN())); | ||||
entry.pushKV("scriptSig", | entry.pushKV("scriptSig", HexStr(txin.scriptSig)); | ||||
HexStr(txin.scriptSig.begin(), txin.scriptSig.end())); | |||||
entry.pushKV("sequence", uint64_t(txin.nSequence)); | entry.pushKV("sequence", uint64_t(txin.nSequence)); | ||||
entry.pushKV("error", strMessage); | entry.pushKV("error", strMessage); | ||||
vErrorsRet.push_back(entry); | vErrorsRet.push_back(entry); | ||||
} | } | ||||
void ParsePrevouts(const UniValue &prevTxsUnival, | void ParsePrevouts(const UniValue &prevTxsUnival, | ||||
FillableSigningProvider *keystore, | FillableSigningProvider *keystore, | ||||
std::map<COutPoint, Coin> &coins) { | std::map<COutPoint, Coin> &coins) { | ||||
▲ Show 20 Lines • Show All 130 Lines • Show Last 20 Lines |