Prevent 0 value for committeesPerSlot in shuffle function (#648)

This commit is contained in:
Yutaro Mori
2018-10-13 14:05:19 +09:00
committed by GitHub
parent 6d0290664a
commit f767b11348
6 changed files with 49 additions and 24 deletions

View File

@@ -111,7 +111,6 @@ func (s *Service) Stop() error {
// From this, the validator client can deduce what slot interval the beacon
// node is in and determine when exactly it is time to propose or attest.
func (s *Service) fetchCurrentAssignmentsAndGenesisTime(client pb.BeaconServiceClient) {
// Currently fetches assignments for all validators.
req := &pb.ValidatorAssignmentRequest{
AllValidators: true,

View File

@@ -190,7 +190,6 @@ func (s *ShardEthereum) registerTXPool() error {
// registerBeaconService registers a service that fetches streams from a beacon node
// via RPC.
func (s *ShardEthereum) registerBeaconService(pubKey []byte) error {
var rpcService *rpcclient.Service
if err := s.services.FetchService(&rpcService); err != nil {
return err