MCPcopy Create free account
hub / github.com/ElementsProject/lightning / pendingsendpays_cb

Function pendingsendpays_cb

plugins/renepay/mods.c:1144–1156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1142}
1143
1144static 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
1158REGISTER_PAYMENT_MODIFIER(pendingsendpays, pendingsendpays_cb);
1159

Callers

nothing calls this directly

Calls 3

payment_commandFunction · 0.85
json_add_sha256Function · 0.85
send_outreqFunction · 0.50

Tested by

no test coverage detected