Skip to content

htlcswitch+routing: handle unknown failure source#3046

Closed
joostjager wants to merge 4 commits into
lightningnetwork:masterfrom
joostjager:invalid-failure-handling
Closed

htlcswitch+routing: handle unknown failure source#3046
joostjager wants to merge 4 commits into
lightningnetwork:masterfrom
joostjager:invalid-failure-handling

Conversation

@joostjager
Copy link
Copy Markdown
Contributor

@joostjager joostjager commented May 6, 2019

This PR modifies the switch to properly signal the case where the error source is unknown. Previously the self node was reported as the source of the error.

Handling of an unknown error source in router is modified to prune all channel edges along the route, as the cause of this error could be any node.

@joostjager joostjager force-pushed the invalid-failure-handling branch 2 times, most recently from 63123e6 to d7bf53f Compare May 6, 2019 14:06
As a preparation for construction of forwarding errors with an unknown
source, this commit updates the String() function to not generate a nil
ptr error.
@joostjager joostjager force-pushed the invalid-failure-handling branch 2 times, most recently from 44606a0 to 8fa8110 Compare May 6, 2019 14:15
@joostjager joostjager requested a review from halseth May 6, 2019 14:16
@joostjager joostjager force-pushed the invalid-failure-handling branch from 8fa8110 to cd601f6 Compare May 6, 2019 19:49
joostjager added 2 commits May 6, 2019 21:51
This commit modifies the switch to properly signal the case where the
error source is unknown. Previously the self node was reported as the
source of the error.

Handling of an unknown error source in router is modified to prune all
channel edges along the route, as the cause of this error could be any
node.
@joostjager joostjager force-pushed the invalid-failure-handling branch from cd601f6 to 3820691 Compare May 6, 2019 19:51
@Roasbeef Roasbeef added P3 might get fixed, nice to have routing bug fix labels Jun 18, 2019
@joostjager
Copy link
Copy Markdown
Contributor Author

Combined with #3188

@joostjager joostjager closed this Jun 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug fix P3 might get fixed, nice to have routing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants