| 406 | } |
| 407 | |
| 408 | UniValue JSONRPCTransactionError(TransactionError terr, const std::string& err_string) |
| 409 | { |
| 410 | if (err_string.length() > 0) { |
| 411 | return JSONRPCError(RPCErrorFromTransactionError(terr), err_string); |
| 412 | } else { |
| 413 | return JSONRPCError(RPCErrorFromTransactionError(terr), TransactionErrorString(terr).original); |
| 414 | } |
| 415 | } |
| 416 | |
| 417 | /** |
| 418 | * A pair of strings that can be aligned (through padding) with other Sections |