func (s *server) GetLastBlockHash(ctx context.Context, in *empty.Empty) (*pb.GetBlockHashResponse, error) {
	h := s.chain.View.Chain.Tip()
	return &pb.GetBlockHashResponse{
		Hash: h.Hash[:],
	}, nil
}
// GetLastBlockHash gets the most recent block hash in the main chain.
GetLastBlockHash gets the most recent block hash in the main chain.
// GetLastBlockHash gets the most recent block hash in the main chain .
func (s *server) GetLastBlockHash(ctx context.Context, in *empty.Empty) (*pb.GetBlockHashResponse, error) {
	h := s.chain.View.Chain.Tip()
	return &pb.GetBlockHashResponse{
		Hash: h.Hash[:],
	}, nil
}
func ( s * server ) GetLastBlockHash ( ctx context . Context , in * empty . Empty ) ( * pb . GetBlockHashResponse , error ) { h := s . chain . View . Chain . Tip ( ) return & pb . GetBlockHashResponse { Hash : h . Hash [ : ] , } , nil }
GetLastBlockHash gets the most recent block hash in the main chain.
GetLastBlockHash gets the most recent block hash in the main chain .