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

Function sendpay_success

lightningd/pay.c:192–203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

190}
191
192static struct command_result *sendpay_success(struct command *cmd,
193 const struct wallet_payment *payment,
194 void *unused)
195{
196 struct json_stream *response;
197
198 assert(payment->status == PAYMENT_COMPLETE);
199
200 response = json_stream_success(cmd);
201 json_add_payment_fields(response, payment);
202 return command_success(cmd, response);
203}
204
205static void
206json_add_routefail_info(struct json_stream *js,

Callers 3

wait_paymentFunction · 0.85
send_payment_coreFunction · 0.85
self_paymentFunction · 0.85

Calls 3

json_add_payment_fieldsFunction · 0.85
json_stream_successFunction · 0.70
command_successFunction · 0.70

Tested by

no test coverage detected