Skip to content
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 by Bors] - API phase 9: finish implementing grpc services #2071

Closed
wants to merge 145 commits into from

Conversation

lrettig
Copy link
Member

@lrettig lrettig commented Jul 14, 2020

Motivation

See #1764
Also Fixes #2116
Requires #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

@avive avive mentioned this pull request Jul 14, 2020
61 tasks
@lrettig lrettig self-assigned this Jul 15, 2020
@lrettig lrettig added the api label Jul 15, 2020
@lrettig lrettig marked this pull request as ready for review July 16, 2020 18:34
@lrettig lrettig requested a review from antonlerner July 16, 2020 18:44
@lrettig lrettig added this to Review in API Jul 16, 2020
Copy link
Contributor

@antonlerner antonlerner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see comments and fix lint

@avive
Copy link
Contributor

avive commented Aug 24, 2020

try

Build failed:

@lrettig - looks like you are getting travis status via bors now again....

@lrettig
Copy link
Member Author

lrettig commented Aug 26, 2020

bors try

bors bot added a commit that referenced this pull request Aug 26, 2020
@lrettig
Copy link
Member Author

lrettig commented Aug 26, 2020

bors try-

@lrettig
Copy link
Member Author

lrettig commented Aug 26, 2020

This branch should be ready to go, except that it needs the fix from #2092 for the logging issue. I want to merge that into develop first. (That's what #2119 was, and it's passing all of the tests.)

@lrettig
Copy link
Member Author

lrettig commented Aug 27, 2020

bors try

bors bot added a commit that referenced this pull request Aug 27, 2020
@bors
Copy link

bors bot commented Aug 27, 2020

try

Build succeeded:

@lrettig
Copy link
Member Author

lrettig commented Sep 10, 2020

bors try

bors bot added a commit that referenced this pull request Sep 10, 2020
@bors
Copy link

bors bot commented Sep 10, 2020

try

Build failed:

@lrettig
Copy link
Member Author

lrettig commented Sep 10, 2020

bors try

bors bot added a commit that referenced this pull request Sep 10, 2020
@bors
Copy link

bors bot commented Sep 10, 2020

try

Build failed:

@lrettig
Copy link
Member Author

lrettig commented Sep 10, 2020

bors try

bors bot added a commit that referenced this pull request Sep 10, 2020
@bors
Copy link

bors bot commented Sep 10, 2020

try

Build succeeded:

@lrettig
Copy link
Member Author

lrettig commented Sep 10, 2020

bors merge

bors bot pushed a commit that referenced this pull request Sep 10, 2020
## Motivation
See #1764 
Also Fixes #2116 
Requires #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
@bors
Copy link

bors bot commented Sep 10, 2020

Pull request successfully merged into develop.

Build succeeded:

@bors bors bot changed the title API phase 9: finish implementing grpc services [Merged by Bors] - API phase 9: finish implementing grpc services Sep 10, 2020
@bors bors bot closed this Sep 10, 2020
@bors bors bot deleted the api-phase9 branch September 10, 2020 11:07
@lrettig lrettig moved this from Review to Done in API Sep 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
API
  
Done
Development

Successfully merging this pull request may close these issues.

API: Make sure new ATXs are being properly reported after block builder refactoring
4 participants