-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2. Route peer requests based on missing inventory (#3465)
* feat(network): send notfound messages to the inventory registry * refactor(network): move the inventory filter into an async function * feat(network): avoid routing requests to peers that are missing inventory * test(network): advertised routing is independent of numeric address value * test(network): peer set routes requests to peers not missing that inventory * test(network): peer set fails requests if all ready peers are missing that inventory * fix(clippy): needless-borrow in the peer set * fix(lint): remove redundant trailing commas in macro calls There is no clippy lint for this, maybe because some macros are sensitive to trailing commas. (But not the ones changed in this commit.) * test(network): check the exact number of inventory peers * doc(network): explain why we ignore inventory send failures * docs(network): explain why a channel error is ignored
- Loading branch information
Showing
7 changed files
with
368 additions
and
80 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
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
Oops, something went wrong.