func (pool *BlockPool) ReachedMaxHeight() bool {
	return pool.Height >= pool.MaxPeerHeight
}
ReachedMaxHeight check if the pool has reached the maximum peer height.
package v1
import (
	"sort"
	"github.com/line/ostracon/libs/log"
	"github.com/line/ostracon/p2p"
	"github.com/line/ostracon/types"
)
type BlockPool struct {
	logger log.Logger
	peers map[p2p.ID]*BpPeer
	blocks map[int64]p2p.ID
	plannedRequests   map[int64]struct{}  
	nextRequestHeight int64               
	Height        int64  
	MaxPeerHeight int64  
	toBcR         bcReactor
}
func NewBlockPool(height int64, toBcR bcReactor) *BlockPool {
	return &BlockPool{
		Height:            height,
		MaxPeerHeight:     0,
		peers:             make(map[p2p.ID]*BpPeer),
		blocks:            make(map[int64]p2p.ID),
		plannedRequests:   make(map[int64]struct{}),
		nextRequestHeight: height,
		toBcR:             toBcR,
	}
}
func (pool *BlockPool) SetLogger(l log.Logger) {
	pool.logger = l
}