-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dot/rpc: implement chain_subscribeNewHeads (#836)
* fix formating of header digest logs * update digest type values to conform to spec * hardcode RPC results for testing * implement RPC subscribe_newHeads WebSocket call * implement subscription * header number as hex string in json responses * rpc getStorage * implement basic rpc state_getStorage call * added test for state_getStorage * cleanup comments * implement state_getPairs * implement state_getStorageHash * implement state_getStorageSize * refactor tests * cleanup comments * added tests * fix lint issues * update empty request test * lint issues * map for holding subscription connections * use channel for block listener subscription * make json results * lint issues * update tests to init coreAPI service * changed if statement to switch * Use HeaderToJSON function * add tests for WebSocket * clean up * update comments * add channel to BlockState service to notify RPC serivce * add done channel to rpc newBlock receiver * add check for open websocket connection * update chan done notifier to use struct instead of bool clean-up comments, move map init.
- Loading branch information
1 parent
230381b
commit 27e2616
Showing
11 changed files
with
413 additions
and
191 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
Oops, something went wrong.