func (pool *BlockPool) updateMaxPeerHeight() {
	var newMax int64
	for _, peer := range pool.peers {
		peerHeight := peer.Height
		if peerHeight > newMax {
			newMax = peerHeight
		}
	}
	pool.MaxPeerHeight = newMax
}
// Updates the pool's max height. If no peers are left MaxPeerHeight is set to 0.
Updates the pool's max height. If no peers are left MaxPeerHeight is set to 0.
// Updates the pool ' s max height . If no peers are left MaxPeerHeight is set to 0 .
func (pool *BlockPool) updateMaxPeerHeight() {
	var newMax int64
	for _, peer := range pool.peers {
		peerHeight := peer.Height
		if peerHeight > newMax {
			newMax = peerHeight
		}
	}
	pool.MaxPeerHeight = newMax
}
func ( pool * BlockPool ) updateMaxPeerHeight ( ) { var newMax int64 for _ , peer := range pool . peers { peerHeight := peer . Height if peerHeight > newMax { newMax = peerHeight } } pool . MaxPeerHeight = newMax }
Updates the pool's max height.
Updates the pool ' s max height .