func (s *server) GetState(ctx context.Context, in *empty.Empty) (*pb.GetStateResponse, error) {
	state := s.chain.GetState()
	stateProto := state.ToProto()

	return &pb.GetStateResponse{State: stateProto}, nil
}
// GetState gets the state of the main chain.
GetState gets the state of the main chain.
// GetState gets the state of the main chain .
func (s *server) GetState(ctx context.Context, in *empty.Empty) (*pb.GetStateResponse, error) {
	state := s.chain.GetState()
	stateProto := state.ToProto()
	return &pb.GetStateResponse{State: stateProto}, nil
}
func ( s * server ) GetState ( ctx context . Context , in * empty . Empty ) ( * pb . GetStateResponse , error ) { state := s . chain . GetState ( ) stateProto := state . ToProto ( ) return & pb . GetStateResponse { State : stateProto } , nil }
GetState gets the state of the main chain.
GetState gets the state of the main chain .