minor fix

This commit is contained in:
Shivam Sharma 2021-12-11 13:28:50 +05:30
parent 4867ce844d
commit 9957d9147f

View file

@ -110,7 +110,7 @@ func (s *Server) ChainSetHead(ctx context.Context, req *proto.ChainSetHeadReques
return &proto.ChainSetHeadResponse{}, nil
}
func ConvertBlockToBlockStub(blocks []*types.Block) []*proto.BlockStub {
func convertBlockToBlockStub(blocks []*types.Block) []*proto.BlockStub {
var blockStubs []*proto.BlockStub
@ -137,8 +137,8 @@ func (s *Server) ChainWatch(req *proto.ChainWatchRequest, reply proto.Bor_ChainW
msg := <-chain2HeadCh
err := reply.Send(&proto.ChainWatchResponse{Type: msg.Type,
Newchain: ConvertBlockToBlockStub(msg.NewChain),
Oldchain: ConvertBlockToBlockStub(msg.OldChain),
Newchain: convertBlockToBlockStub(msg.NewChain),
Oldchain: convertBlockToBlockStub(msg.OldChain),
})
if err != nil {
return err