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

Beacon Node gRPC Server and Client Services #364

Merged
merged 27 commits into from
Aug 1, 2018

Conversation

rauljordan
Copy link
Contributor

@rauljordan rauljordan commented Aug 1, 2018

Hi all,

This implements a beacon node gRPC server as a service alongside a gRPC client for a sharding client and beacon node to communicate effectively. Setting this up is important for us to deprecate the Sharding Manager Contract and update our client code to the latest spec. #315.

To get this working, just run the beacon node with the flag --beacon-rpc-port 4000 and a sharding client with --beacon-rpc-provider http://localhost:4000.

@rauljordan rauljordan self-assigned this Aug 1, 2018
@rauljordan rauljordan added this to the Ruby milestone Aug 1, 2018
@@ -26,4 +26,10 @@ var (
Name: "pubkey",
Usage: "Validator's public key. Beacon chain node will listen to VRC log to determine when registration has completed based on this public key address.",
}
// BeaconRPCPort defines a beacon node RPC port to open.
BeaconRPCPort = cli.StringFlag{
Name: "beacon-rpc-port",
Copy link
Member

Choose a reason for hiding this comment

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

Let's think the name here, do we really need beacon? If a beacon code only opens up one kind of rpc port, it should just be rpc-port right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point, will change


var log = logrus.WithField("prefix", "rpc")

// Service hi.
Copy link
Member

Choose a reason for hiding this comment

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

Is there a reason we put hi there? and for all the comments too

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Whoops, forgot to change lol

@@ -58,7 +58,7 @@ VERSION:
app.Usage = "this is a beacon chain implementation for Ethereum 2.0"
app.Action = startNode

app.Flags = []cli.Flag{utils.SimulatorFlag, utils.VrcContractFlag, utils.PubKeyFlag, utils.Web3ProviderFlag, cmd.DataDirFlag, cmd.VerbosityFlag, debug.PProfFlag, debug.PProfAddrFlag, debug.PProfPortFlag, debug.MemProfileRateFlag, debug.CPUProfileFlag, debug.TraceFlag}
app.Flags = []cli.Flag{utils.SimulatorFlag, utils.VrcContractFlag, utils.PubKeyFlag, utils.Web3ProviderFlag, utils.BeaconRPCPort, cmd.DataDirFlag, cmd.VerbosityFlag, debug.PProfFlag, debug.PProfAddrFlag, debug.PProfPortFlag, debug.MemProfileRateFlag, debug.CPUProfileFlag, debug.TraceFlag}
Copy link
Member

Choose a reason for hiding this comment

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

We should change BeaconRPCPort to RPCPort too

Copy link
Member

@terencechain terencechain left a comment

Choose a reason for hiding this comment

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

Good work on this PR!

@rauljordan rauljordan merged commit 29596bf into prysmaticlabs:master Aug 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants