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

Function notify_forward_event

lightningd/notification.c:400–416  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

398REGISTER_NOTIFICATION(forward_event);
399
400void notify_forward_event(struct lightningd *ld,
401 const struct htlc_in *in,
402 const struct short_channel_id *scid_out,
403 const struct amount_msat *amount_out,
404 enum forward_status state,
405 enum onion_wire failcode,
406 struct timeabs *resolved_time,
407 enum forward_style forward_style,
408 u64 created_index,
409 u64 updated_index)
410{
411 struct jsonrpc_notification *n = notify_start(ld, "forward_event");
412 if (!n)
413 return;
414 forward_event_notification_serialize(n->stream, in, scid_out, amount_out, state, failcode, resolved_time, forward_style, created_index, updated_index);
415 notify_send(ld, n);
416}
417
418REGISTER_NOTIFICATION(sendpay_success);
419

Callers

nothing calls this directly

Calls 3

notify_startFunction · 0.85
notify_sendFunction · 0.85

Tested by

no test coverage detected