discovery: Log new blocks
This should help debug some flaky itests.
This commit is contained in:
1 parent
be36776120
commit
ccc8f8e48f
1 file changed
+3
@@ -1035,6 +1035,9 @@ func (d *AuthenticatedGossiper) networkHandler() {
|
|||||||
blockHeight := uint32(newBlock.Height)
|
blockHeight := uint32(newBlock.Height)
|
||||||
atomic.StoreUint32(&d.bestHeight, blockHeight)
|
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
|
// Next we check if we have any premature announcements
|
||||||
// for this height, if so, then we process them once
|
// for this height, if so, then we process them once
|
||||||
// more as normal announcements.
|
// more as normal announcements.
|
||||||
|
|||||||
Reference in new issue
Block a user