From ccc8f8e48f96da95cb80c048166e2c0c1df0c2e2 Mon Sep 17 00:00:00 2001 From: Matheus Degiovani Date: Fri, 10 Apr 2020 07:00:49 -0300 Subject: [PATCH] discovery: Log new blocks This should help debug some flaky itests. --- discovery/gossiper.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/discovery/gossiper.go b/discovery/gossiper.go index 03139412..0e723837 100644 --- a/discovery/gossiper.go +++ b/discovery/gossiper.go @@ -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.