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

Function sendpay_success

lightningd/pay.c:166–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164}
165
166static struct command_result *sendpay_success(struct command *cmd,
167 const struct wallet_payment *payment)
168{
169 struct json_stream *response;
170
171 assert(payment->status == PAYMENT_COMPLETE);
172
173 response = json_stream_success(cmd);
174 json_add_payment_fields(response, payment);
175 return command_success(cmd, response);
176}
177
178static void
179json_add_routefail_info(struct json_stream *js,

Callers 3

tell_waiters_successFunction · 0.85
wait_paymentFunction · 0.85
send_payment_coreFunction · 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