Pushes a JSON object for script verification or signing errors to vErrorsRet. */
| 500 | |
| 501 | /** Pushes a JSON object for script verification or signing errors to vErrorsRet. */ |
| 502 | static 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 | |
| 513 | UniValue signrawtransaction(const UniValue& params, bool fHelp) |
| 514 | { |