-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
routing: reject channel announcement if connected vertexes are unknown
This commit modifies the processing in the routing package eo new announcements. Previously, if we cgot a cnew channel announcement but didn’t yet know of the verses that the chanell connected, the cnnounacment would be accepted. This behavior was eronoues as if the channel were to be queried for, the DB query would fail as we would be unable to retrieve the two nodes involved int he channel. To avoid such an error case, we will now _reject_ any channel announcements in which we don’t yet have a valid node announcement for the connected nodes. This case has been inserted into the handling of channel announcement, a new test has been added, and finally older tests have also been updated to ensure that nodes are added to the database _before_ the edge is.
- Loading branch information
Showing
4 changed files
with
80 additions
and
10 deletions.
There are no files selected for viewing
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
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
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
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