Skip to content

Fix xpay age flakyness#9214

Open
Lagrang3 wants to merge 2 commits into
ElementsProject:masterfrom
Lagrang3:fix-xpay-age-flakyness
Open

Fix xpay age flakyness#9214
Lagrang3 wants to merge 2 commits into
ElementsProject:masterfrom
Lagrang3:fix-xpay-age-flakyness

Conversation

@Lagrang3

Copy link
Copy Markdown
Collaborator

We use to call askrene-age on xpay layer every 60 seconds to remove old
entries. But for payments to discard old entries it is enough to call
askrene-age before getroutes. True as long as:

    age(t1) * age(t2) * ... * age(tN) = age(tN)

Fixes #9210.

Lagrang3 added 2 commits June 15, 2026 07:08
preapproveinvoice_succeed and preapprovekeysend_succeed
do the same thing: acknowledge that preapproval rpc call have succeeded
and continue the payment execution via populate_private_layers.
Therefore we use a unique function for both cases: preapprove_succeed.

Changelog-None.

Signed-off-by: Lagrang3 <lagrang3@protonmail.com>
We use to call askrene-age on xpay layer every 60 seconds to remove old
entries. But for payments to discard old entries it is enough to call
askrene-age before getroutes. True as long as:

age(t1) * age(t2) * ... * age(tN) = age(tN)

Reduces flakyness caused by xpay failing to call askrene-age during lightningd shutdown.

Changelog-None

Signed-off-by: Lagrang3 <lagrang3@protonmail.com>
@Lagrang3 Lagrang3 force-pushed the fix-xpay-age-flakyness branch from ebc5dc2 to 6c4cb66 Compare June 15, 2026 06:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pytests: xpay calling askrene-age causes BROKEN line during teardown

1 participant