| 3281 | } |
| 3282 | |
| 3283 | static void direct_pay_cb(struct direct_pay_data *d, struct payment *p) |
| 3284 | { |
| 3285 | struct out_req *req; |
| 3286 | |
| 3287 | /* Look up the direct channel only on root. */ |
| 3288 | if (p->step != PAYMENT_STEP_INITIALIZED) |
| 3289 | return payment_continue(p); |
| 3290 | |
| 3291 | |
| 3292 | |
| 3293 | req = jsonrpc_request_start(p->plugin, NULL, "listpeers", |
| 3294 | direct_pay_listpeers, direct_pay_listpeers, |
| 3295 | p); |
| 3296 | json_add_node_id(req->js, "id", p->destination); |
| 3297 | send_outreq(p->plugin, req); |
| 3298 | } |
| 3299 | |
| 3300 | static struct direct_pay_data *direct_pay_init(struct payment *p) |
| 3301 | { |
nothing calls this directly
no test coverage detected