| 404 | } |
| 405 | |
| 406 | static struct command_result *getmychannels_cb(struct payment *payment) |
| 407 | { |
| 408 | struct command *cmd = payment_command(payment); |
| 409 | if (!cmd) |
| 410 | plugin_err(pay_plugin->plugin, |
| 411 | "getmychannels_pay_mod: cannot get a valid cmd."); |
| 412 | |
| 413 | struct out_req *req = jsonrpc_request_start( |
| 414 | cmd, "listpeerchannels", getmychannels_done, |
| 415 | payment_rpc_failure, payment); |
| 416 | return send_outreq(req); |
| 417 | } |
| 418 | |
| 419 | REGISTER_PAYMENT_MODIFIER(getmychannels, getmychannels_cb); |
| 420 |
nothing calls this directly
no test coverage detected