Skip to content

Conversation

@rustyrussell
Copy link
Contributor

Fixes: #8629

There was a corner case where we created a pending payment but then didn't create an outgoing htlc (most simply, when the peer wasn't connected!). Test that, and fix the ordering, then finally add a db migration which cleans up any previous ones.

…t queue it to the channeld for the peer.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
…sendpays "pending".

If we failed after we register (e.g. channeld not available), we don't
mark it failed.  We shouldn't register until we've definitely created
the htlc.

Changelog-Fixed: `xpay` would sometimes leave payment parts status `pending` in failure cases (as seen in listpays or listsendpays).
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Fixes: ElementsProject#8629
…y have HTLCs.

And don't fix up a genuine pending one!

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
…s no htlc.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
@rustyrussell rustyrussell added this to the v25.12 milestone Oct 27, 2025
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.

Payment without HTLCs marked as pending

1 participant