| 791 | } |
| 792 | |
| 793 | static struct command_result *getutxout(struct command *cmd, |
| 794 | const char *buf, |
| 795 | const jsmntok_t *toks) |
| 796 | { |
| 797 | const char *txid, *vout; |
| 798 | |
| 799 | /* bitcoin-cli wants strings. */ |
| 800 | if (!param(cmd, buf, toks, |
| 801 | p_req("txid", param_string, &txid), |
| 802 | p_req("vout", param_string, &vout), |
| 803 | NULL)) |
| 804 | return command_param_failed(); |
| 805 | |
| 806 | start_bitcoin_cli(NULL, cmd, process_getutxout, true, |
| 807 | BITCOIND_HIGH_PRIO, NULL, |
| 808 | "gettxout", txid, vout, NULL); |
| 809 | |
| 810 | return command_still_pending(cmd); |
| 811 | } |
| 812 | |
| 813 | static void bitcoind_failure(struct plugin *p, const char *error_message) |
| 814 | { |
nothing calls this directly
no test coverage detected