-
Notifications
You must be signed in to change notification settings - Fork 906
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
Merged
rustyrussell
merged 4 commits into
ElementsProject:master
from
rustyrussell:guilt/listforwards-localfail-out_channel
Jul 11, 2022
Merged
listforwards localfail out_channel #5330
rustyrussell
merged 4 commits into
ElementsProject:master
from
rustyrussell:guilt/listforwards-localfail-out_channel
Jul 11, 2022
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rustyrussell
force-pushed
the
guilt/listforwards-localfail-out_channel
branch
from
June 21, 2022 10:27
dd8b6ba
to
af1e9a9
Compare
rustyrussell
force-pushed
the
guilt/listforwards-localfail-out_channel
branch
from
July 6, 2022 04:50
af1e9a9
to
d6e3d79
Compare
Rebase after scid aliases! |
…possible. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This (will) happen if they ask is to forward to an unknown scid. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
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 <rusty@rustcorp.com.au>
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 <rusty@rustcorp.com.au> Fixes: ElementsProject#5329
rustyrussell
force-pushed
the
guilt/listforwards-localfail-out_channel
branch
from
July 9, 2022 03:23
d6e3d79
to
fdc3305
Compare
Fixed final patch: we can't set hout in db if it does not exist, as we get "Foreign constraint failed". |
rustyrussell
force-pushed
the
guilt/listforwards-localfail-out_channel
branch
from
July 9, 2022 05:48
fdc3305
to
090044a
Compare
Rebased again, removed unrelated fixup which clashed with master rebase. |
ACK 090044a lgtm, test failure is unrelated. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.