discovery: Log new blocks

This should help debug some flaky itests.
This commit is contained in:
Matheus Degiovani 2020-04-10 07:00:49 -03:00
parent be36776120
commit ccc8f8e48f

View File

@ -1035,6 +1035,9 @@ func (d *AuthenticatedGossiper) networkHandler() {
blockHeight := uint32(newBlock.Height)
atomic.StoreUint32(&d.bestHeight, blockHeight)
log.Debugf("New Block: height=%d hash=%s", blockHeight,
newBlock.Hash)
// Next we check if we have any premature announcements
// for this height, if so, then we process them once
// more as normal announcements.