Skip to content

Commit

Permalink
Comment
Browse files Browse the repository at this point in the history
  • Loading branch information
terencechain committed Apr 3, 2020
1 parent 5a996db commit e9d1ee1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions beacon-chain/rpc/validator/attester.go
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,9 @@ func (vs *Server) waitToOneThird(ctx context.Context, slot uint64) {
// SubscribeCommitteeSubnet subscribes to the committee ID subnet given subscribe request.
func (vs *Server) SubscribeCommitteeSubnet(ctx context.Context, req *ethpb.CommitteeSubnetSubscribeRequest) (*ptypes.Empty, error) {
if req.IsAggregator {
cache.CommitteeIDs.AddID(req.Slot, req.CommitteeId)
// What should a node cache for an aggregator?
} else {
// What should be done for an attester?
cache.CommitteeIDs.AddID(req.Slot, req.CommitteeId)
}
return &ptypes.Empty{}, nil
}

0 comments on commit e9d1ee1

Please sign in to comment.