mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 09:53:54 +01:00
discovery: Log new blocks
This should help debug some flaky itests.
This commit is contained in:
parent
be36776120
commit
ccc8f8e48f
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user