set logger

This commit is contained in:
Anton Kaliaev
2017-05-12 19:17:08 +02:00
parent 3e1343dc6b
commit c9cd8de9c6
7 changed files with 26 additions and 21 deletions

View File

@ -281,6 +281,7 @@ func (pool *BlockPool) makeNextRequester() {
nextHeight := pool.height + len(pool.requesters)
request := newBPRequester(pool, nextHeight)
request.SetLogger(pool.Logger.With("height", nextHeight))
pool.requesters[nextHeight] = request
pool.numPending++