Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

listforwards localfail out_channel #5330

Conversation

rustyrussell
Copy link
Contributor

There are more cases where we can populate out_channel; we definitely need to fix the case where we failed locally because the outgoing channel didn't have capacity, but we should also try anywhere that they gave us a channel to fwd to, even if it doesn't exist, for example.

@rustyrussell
Copy link
Contributor Author

Rebase after scid aliases!

This (will) happen if they ask is to forward to an unknown scid.

Signed-off-by: Rusty Russell <[email protected]>
They're not logically connected: we can know where they wanted to
go, but we didn't send it.

Where possible, it's the scid *they asked for*; otherwise, it's the
scid or fallback to the alias, but do this in the *caller*, not by
overriding inside wallet_forwarded_payment_add.

Signed-off-by: Rusty Russell <[email protected]>
There's one case where we can present more infomation, so do that, and
fix documentation.

Changelog-Added: JSON-RPC: `listforwards` now shows `out_channel` in more cases: even if it couldn't actually send to it.
Signed-off-by: Rusty Russell <[email protected]>
Fixes: ElementsProject#5329
@rustyrussell rustyrussell force-pushed the guilt/listforwards-localfail-out_channel branch from d6e3d79 to fdc3305 Compare July 9, 2022 03:23
@rustyrussell
Copy link
Contributor Author

Fixed final patch: we can't set hout in db if it does not exist, as we get "Foreign constraint failed".

@rustyrussell rustyrussell force-pushed the guilt/listforwards-localfail-out_channel branch from fdc3305 to 090044a Compare July 9, 2022 05:48
@rustyrussell
Copy link
Contributor Author

Rebased again, removed unrelated fixup which clashed with master rebase.

@niftynei
Copy link
Collaborator

ACK 090044a

lgtm, test failure is unrelated.

@rustyrussell rustyrussell merged commit 3127510 into ElementsProject:master Jul 11, 2022
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.

2 participants