func NewFridayBlockPool(start int64, requestsCh chan<- BlockRequest, errorsCh chan<- peerError, ulbHandler ULBLengthHandler) *FridayBlockPool {
	bp := &FridayBlockPool{
		BlockPool: BlockPool{
			peers: make(map[p2p.ID]*bpPeer),

			requesters: make(map[int64]*bpRequester),
			height:     start,
			numPending: 0,

			requestsCh: requestsCh,
			errorsCh:   errorsCh,
		},
		ulbHandler: ulbHandler,
	}
	bp.BaseService = *cmn.NewBaseService(nil, "BlockPool", bp)
	return bp
}
// NewBlockPool returns a new BlockPool with the height equal to start. Block
// requests and errors will be sent to requestsCh and errorsCh accordingly.
NewBlockPool returns a new BlockPool with the height equal to start. Block
requests and errors will be sent to requestsCh and errorsCh accordingly.
// NewBlockPool returns a new BlockPool with the height equal to start . Block // requests and errors will be sent to requestsCh and errorsCh accordingly .
func NewFridayBlockPool(start int64, requestsCh chan<- BlockRequest, errorsCh chan<- peerError, ulbHandler ULBLengthHandler) *FridayBlockPool {
	bp := &FridayBlockPool{
		BlockPool: BlockPool{
			peers: make(map[p2p.ID]*bpPeer),
			requesters: make(map[int64]*bpRequester),
			height:     start,
			numPending: 0,
			requestsCh: requestsCh,
			errorsCh:   errorsCh,
		},
		ulbHandler: ulbHandler,
	}
	bp.BaseService = *cmn.NewBaseService(nil, "BlockPool", bp)
	return bp
}
func NewFridayBlockPool ( start int64 , requestsCh chan <- BlockRequest , errorsCh chan <- peerError , ulbHandler ULBLengthHandler ) * FridayBlockPool { bp := & FridayBlockPool { BlockPool : BlockPool { peers : make ( map [ p2p . ID ] * bpPeer ) , requesters : make ( map [ int64 ] * bpRequester ) , height : start , numPending : 0 , requestsCh : requestsCh , errorsCh : errorsCh , } , ulbHandler : ulbHandler , } bp . BaseService = * cmn . NewBaseService ( nil , " " , bp ) return bp }
NewBlockPool returns a new BlockPool with the height equal to start.
NewBlockPool returns a new BlockPool with the height equal to start .