forked from spacemeshos/go-spacemesh
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
API phase 9: finish implementing grpc services (spacemeshos#2071)
## Motivation See spacemeshos#1764 Also Fixes spacemeshos#2116 Requires spacemeshos#2092, merge that first ## Changes - Adds stubs for all remaining services and endpoints - Upgrades to latest API build, renames a few API data items to be consistent with improved naming in the API code - Allows MeshService to read and return layer root hash: makes TransactionProcessor GetLayerStateRoot method public - Adds a config param (internal, only for testing) to force the syncer to always enable listening to gossip - Event Reporter no longer reports any details about Status updates, it just "pings" the listener which is responsible for re-fetching all status items they care about - Adds account, reward, receipt channels to Reporter; allows Reporter to block, or to increase channel buffer sizes, on initialization - Allows Reporter report methods to block (useful for tests) - Implements all endpoints that can be implemented (some, e.g. those involving transaction receipt, cannot yet be implemented) - Adds a method `GetSmesherID` to ATX to allow the nodeID that created it to be read, as part of finding ATXs by smesher for the API ## Test Plan - Adds tests for all new endpoints and services
- Loading branch information
Showing
46 changed files
with
4,813 additions
and
319 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.