| 3885 | } |
| 3886 | |
| 3887 | static void payee_incoming_limit_step_cb(void *d UNUSED, struct payment *p) |
| 3888 | { |
| 3889 | /* Only operate at the initialization of te root payment. |
| 3890 | * Also, no point operating if payment does not support MPP anyway. |
| 3891 | */ |
| 3892 | if (p->parent || p->step != PAYMENT_STEP_INITIALIZED |
| 3893 | || !payment_supports_mpp(p)) |
| 3894 | return payment_continue(p); |
| 3895 | |
| 3896 | /* Get information on the destination. */ |
| 3897 | struct out_req *req; |
| 3898 | req = jsonrpc_request_start(p->plugin, NULL, "listchannels", |
| 3899 | &payee_incoming_limit_count, |
| 3900 | &payment_rpc_failure, p); |
| 3901 | json_add_node_id(req->js, "source", p->destination); |
| 3902 | (void) send_outreq(p->plugin, req); |
| 3903 | } |
| 3904 | |
| 3905 | REGISTER_PAYMENT_MODIFIER(payee_incoming_limit, void *, NULL, |
| 3906 | payee_incoming_limit_step_cb); |
nothing calls this directly
no test coverage detected