This repository was archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Rework the event system of sc-network
#14197
Open
altonen
wants to merge
50
commits into
master
Choose a base branch
from
notification-service
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 7 commits
Commits
Show all changes
50 commits
Select commit
Hold shift + click to select a range
cb99f5c
Take notification configs
altonen 471616a
Return `NonDefaultSetConfig` from `TransactionsHandlerPrototype::new()`
altonen c456edd
Make fields of `NonDefaultSetConfig` private
altonen 5593a53
Introduce `NotificationService`
altonen 22cd46c
Add implementation of `NotificationService`
altonen b42b901
Initialize command streams and protocol handles in `Notifications`
altonen 9685625
Poll commands from protocols in `Notifications`
altonen b93cf90
Start using `tracing_unbounded` for `Notifications` -> protocols channel
altonen 8cc85c6
Send `NotificationEvent`s from `Notifications`
altonen f4f9090
Start using `NotificationService` for transactions protocol
altonen 796f826
Implement `clone()` for `NotificationService`
altonen 00a093a
Fix `BEEFY`, `NetworkGossip` and `GRANDPA` tests
altonen a3746dc
Start using `NotificationService` for `SyncingEngine`
altonen 15d093b
Validate inbound substream before emitting `NotificationStreamOpened`
altonen 513ca87
Convert statement store to use `NotificationService`
altonen 2e9da9c
Split `NotificationService` files logically
altonen 1fd9a08
Add getter for peer's `NotificationsSink`
altonen 94e1e79
Merge remote-tracking branch 'origin/master' into notification-service
altonen b19ccb8
Apply suggestions from code review
altonen 37db9f6
Get peer count from `SyncingEngine` in `sc-network` tests
altonen 4e2ad89
Apply review comments
altonen 3441cfa
Merge remote-tracking branch 'origin/master' into notification-service
altonen 182fdc7
Apply suggestions from code review
altonen 440402c
Introduce `NotificationEvent::NotificationSinkReplaced`
altonen 96d2250
Refactor substream acceptance in `Notifications`
altonen fd41d7d
Merge remote-tracking branch 'origin/master' into notification-service
altonen ea56743
Rename `Peerset` functions
altonen 1097738
Add metrics
altonen 140b830
Merge remote-tracking branch 'origin/master' into notification-service
altonen 711761d
Introduce `MessageSink`
altonen 294fd49
Merge remote-tracking branch 'origin/master' into notification-service
altonen b9368f8
Merge remote-tracking branch 'origin/master' into notification-service
altonen 258fd5a
Minor fixes
altonen 1132424
Store peer role in `PeerStore`
altonen 4b02a3d
Don't return `Result` for `send_sync_notification()`
altonen c3ff587
Do not pass Prometheus registry to `notification_service()`
altonen b8e2fcc
Fix metrics
altonen 1b84a72
Merge remote-tracking branch 'origin/master' into notification-service
altonen aad966a
Rework peer role detection
altonen 295a6a7
Remove rejected peers from `ProtocolController`
altonen fe8eeed
Fix BEEFY test
altonen ccb3beb
Remove dead code
altonen d38b53b
Start using `NotificationService` properly in `SyncingEngine`
altonen a84000f
Minor code cleanups
altonen 92da646
Fix warnings
altonen 18d948e
Fix documentation
altonen b7c3b68
Apply review comments
altonen 10bdc28
Fix documentation
altonen e5e6af0
Apply suggestions from code review
altonen 25c12b2
Apply review comments
altonen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
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.
Uh oh!
There was an error while loading. Please reload this page.