Skip to content

Commit

Permalink
renepay: remove extra call to refreshgossmap
Browse files Browse the repository at this point in the history
Preceding the introduction of askrene we needed to make a gossmap
refresh at every payment cycle to ensure to pick up the udpates in the
gossip store due to "addgossip" RPCs are called from the messages of
failed onions. With askrene this is no longer necessary.

Signed-off-by: Lagrang3 <[email protected]>
  • Loading branch information
Lagrang3 committed Sep 17, 2024
1 parent 63e6e47 commit 42d5600
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions plugins/renepay/mods.c
Original file line number Diff line number Diff line change
Expand Up @@ -1196,15 +1196,14 @@ void *payment_virtual_program[] = {
/* do */
/*12*/ OP_CALL, &pendingsendpays_pay_mod,
/*14*/ OP_CALL, &checktimeout_pay_mod,
/*16*/ OP_CALL, &refreshgossmap_pay_mod,
/*18*/ OP_CALL, &compute_routes_pay_mod,
/*20*/ OP_CALL, &send_routes_pay_mod,
/*16*/ OP_CALL, &compute_routes_pay_mod,
/*18*/ OP_CALL, &send_routes_pay_mod,
/*do*/
/*22*/ OP_CALL, &sleep_pay_mod,
/*24*/ OP_CALL, &collect_results_pay_mod,
/*20*/ OP_CALL, &sleep_pay_mod,
/*22*/ OP_CALL, &collect_results_pay_mod,
/*while*/
/*26*/ OP_IF, &nothaveresults_pay_cond, (void *)22,
/*24*/ OP_IF, &nothaveresults_pay_cond, (void *)20,
/* while */
/*29*/ OP_IF, &retry_pay_cond, (void *)12,
/*32*/ OP_CALL, &end_pay_mod, /* safety net, default failure if reached */
/*34*/ NULL};
/*27*/ OP_IF, &retry_pay_cond, (void *)12,
/*30*/ OP_CALL, &end_pay_mod, /* safety net, default failure if reached */
/*32*/ NULL};

0 comments on commit 42d5600

Please sign in to comment.