Skip to content

Commit 42d5600

Browse files
committed
renepay: remove extra call to refreshgossmap
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]>
1 parent 63e6e47 commit 42d5600

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

plugins/renepay/mods.c

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1196,15 +1196,14 @@ void *payment_virtual_program[] = {
11961196
/* do */
11971197
/*12*/ OP_CALL, &pendingsendpays_pay_mod,
11981198
/*14*/ OP_CALL, &checktimeout_pay_mod,
1199-
/*16*/ OP_CALL, &refreshgossmap_pay_mod,
1200-
/*18*/ OP_CALL, &compute_routes_pay_mod,
1201-
/*20*/ OP_CALL, &send_routes_pay_mod,
1199+
/*16*/ OP_CALL, &compute_routes_pay_mod,
1200+
/*18*/ OP_CALL, &send_routes_pay_mod,
12021201
/*do*/
1203-
/*22*/ OP_CALL, &sleep_pay_mod,
1204-
/*24*/ OP_CALL, &collect_results_pay_mod,
1202+
/*20*/ OP_CALL, &sleep_pay_mod,
1203+
/*22*/ OP_CALL, &collect_results_pay_mod,
12051204
/*while*/
1206-
/*26*/ OP_IF, &nothaveresults_pay_cond, (void *)22,
1205+
/*24*/ OP_IF, &nothaveresults_pay_cond, (void *)20,
12071206
/* while */
1208-
/*29*/ OP_IF, &retry_pay_cond, (void *)12,
1209-
/*32*/ OP_CALL, &end_pay_mod, /* safety net, default failure if reached */
1210-
/*34*/ NULL};
1207+
/*27*/ OP_IF, &retry_pay_cond, (void *)12,
1208+
/*30*/ OP_CALL, &end_pay_mod, /* safety net, default failure if reached */
1209+
/*32*/ NULL};

0 commit comments

Comments
 (0)