| 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 | { |
no test coverage detected