| 1036 | } |
| 1037 | |
| 1038 | static struct command_result *payment_getlocalmods(struct payment *p) |
| 1039 | { |
| 1040 | struct out_req *req; |
| 1041 | |
| 1042 | /* Don't call listpeerchannels if we already have mods */ |
| 1043 | if (p->mods) |
| 1044 | return payment_getroute(p); |
| 1045 | |
| 1046 | req = jsonrpc_request_start(payment_cmd(p), "listpeerchannels", |
| 1047 | &payment_listpeerchannels_success, |
| 1048 | &payment_rpc_failure, p); |
| 1049 | return send_outreq(req); |
| 1050 | } |
| 1051 | |
| 1052 | static struct payment_result *tal_sendpay_result_from_json(const tal_t *ctx, |
| 1053 | const char *buffer, |
no test coverage detected