| 1142 | } |
| 1143 | |
| 1144 | static struct command_result *pendingsendpays_cb(struct payment *payment) |
| 1145 | { |
| 1146 | struct command *cmd = payment_command(payment); |
| 1147 | assert(cmd); |
| 1148 | |
| 1149 | struct out_req *req = jsonrpc_request_start( |
| 1150 | cmd, "listsendpays", pendingsendpays_done, |
| 1151 | payment_rpc_failure, payment); |
| 1152 | |
| 1153 | json_add_sha256(req->js, "payment_hash", |
| 1154 | &payment->payment_info.payment_hash); |
| 1155 | return send_outreq(req); |
| 1156 | } |
| 1157 | |
| 1158 | REGISTER_PAYMENT_MODIFIER(pendingsendpays, pendingsendpays_cb); |
| 1159 |
nothing calls this directly
no test coverage detected