-
Notifications
You must be signed in to change notification settings - Fork 146
dot/rpc implement state_subscribeStorage RPC WebSocket method #983
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
Merged
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
8dcd114
stub functions for storage change
edwardmack 1839679
create channels
edwardmack e17115c
added websocket subscription filter
edwardmack cb68030
implement rpc state_subscribeStorage
edwardmack a4a06d1
make lint
edwardmack 4e92819
add tests
edwardmack 4dd45e3
add tests
edwardmack 452a7a1
update comments
edwardmack d822106
Merge branch 'development' into ed/subscribe_storage
edwardmack 631f942
move channel listener logic to individual go routines
edwardmack 2696608
update logging to use chainsafe logger
edwardmack b7ff1ce
refactor websocket connection handling storage
edwardmack 5bdbe0e
refactor block listener
edwardmack 9389b5b
handle closing listening channels and websocket connections
edwardmack 884c523
lint issues
edwardmack 0d62122
Merge branch 'development' into ed/subscribe_storage
edwardmack ce4837c
added notification on clear storage for storage change listener
edwardmack 8d533ca
handle closing channes and subscriptions
edwardmack 46db2f6
implement close functions for block listener
edwardmack 0d19256
fix test
edwardmack 005f4e6
move websocket_test to service_test to fix cyclic import
edwardmack cb3c502
fix lint issues
edwardmack f9d65f0
add tests for websocket
edwardmack 85b6602
update test
edwardmack bd6e9d9
Merge branch 'development' into ed/subscribe_storage
edwardmack b0be8f1
code cleanup
edwardmack cf9cc48
add mock BlockAPI and mock StorageAPI to tests
edwardmack 31f6b5a
Merge branch 'development' into ed/subscribe_storage
edwardmack bde2c68
Merge branch 'development' into ed/subscribe_storage
edwardmack 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm also wondering, is there an unsubscribe method corresponding to the subscribe methods? if so, it would be nice to return the subscription ID