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

Function payment_set_step

plugins/libplugin-pay.c:2334–2342  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2332};
2333
2334void payment_set_step(struct payment *p, enum payment_step newstep)
2335{
2336 p->current_modifier = -1;
2337 p->step = newstep;
2338
2339 /* Any final state needs an end_time */
2340 if (p->step >= PAYMENT_STEP_SPLIT)
2341 p->end_time = clock_time();
2342}
2343
2344struct command_result *payment_continue(struct payment *p)
2345{

Callers 7

payment_abortFunction · 0.85
payment_failFunction · 0.85
retry_step_cbFunction · 0.85
direct_pay_overrideFunction · 0.85

Calls 1

clock_timeFunction · 0.85

Tested by

no test coverage detected