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

Function checktimeout_cb

plugins/renepay/mods.c:954–960  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

952 */
953
954static struct command_result *checktimeout_cb(struct payment *payment)
955{
956 if (time_after(clock_time(), payment->payment_info.stop_time)) {
957 return payment_fail(payment, PAY_STOPPED_RETRYING, "Timed out");
958 }
959 return payment_continue(payment);
960}
961
962REGISTER_PAYMENT_MODIFIER(checktimeout, checktimeout_cb);
963

Callers

nothing calls this directly

Calls 4

time_afterFunction · 0.85
clock_timeFunction · 0.85
payment_failFunction · 0.70
payment_continueFunction · 0.70

Tested by

no test coverage detected