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

Function sleep_cb

plugins/renepay/mods.c:840–850  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

838}
839
840static struct command_result *sleep_cb(struct payment *payment)
841{
842 struct command *cmd = payment_command(payment);
843 assert(cmd);
844 assert(payment->waitresult_timer == NULL);
845 payment->waitresult_timer
846 = command_timer(cmd,
847 time_from_msec(COLLECTOR_TIME_WINDOW_MSEC),
848 sleep_done, payment);
849 return command_still_pending(cmd);
850}
851
852REGISTER_PAYMENT_MODIFIER(sleep, sleep_cb);
853

Callers

nothing calls this directly

Calls 3

payment_commandFunction · 0.85
time_from_msecFunction · 0.85
command_still_pendingFunction · 0.50

Tested by

no test coverage detected