func (pool *BlockPool) MakeNextRequests(maxNumRequests int) {
	heights := pool.makeRequestBatch(maxNumRequests)
	if len(heights) != 0 {
		pool.logger.Info("makeNextRequests will make following requests",
			"number", len(heights), "heights", heights)
	}

	for _, height := range heights {
		h := int64(height)
		if !pool.sendRequest(h) {
			// If a good peer was not found for sending the request at height h then return,
			// as it shouldn't be possible to find a peer for h+1.
			return
		}
		delete(pool.plannedRequests, h)
	}
}
// MakeNextRequests creates more requests if the block pool is running low.
MakeNextRequests creates more requests if the block pool is running low.
// MakeNextRequests creates more requests if the block pool is running low .
func (pool *BlockPool) MakeNextRequests(maxNumRequests int) {
	heights := pool.makeRequestBatch(maxNumRequests)
	if len(heights) != 0 {
		pool.logger.Info("makeNextRequests will make following requests",
			"number", len(heights), "heights", heights)
	}
	for _, height := range heights {
		h := int64(height)
		if !pool.sendRequest(h) {
			return
		}
		delete(pool.plannedRequests, h)
	}
}
func ( pool * BlockPool ) MakeNextRequests ( maxNumRequests int ) { heights := pool . makeRequestBatch ( maxNumRequests ) if len ( heights ) != 0 { pool . logger . Info ( " " , " " , len ( heights ) , " " , heights ) } for _ , height := range heights { h := int64 ( height ) if ! pool . sendRequest ( h ) { return } delete ( pool . plannedRequests , h ) } }
MakeNextRequests creates more requests if the block pool is running low.
MakeNextRequests creates more requests if the block pool is running low .
// If a good peer was not found for sending the request at height h then return, // as it shouldn't be possible to find a peer for h+1.