routing: only log pre-mature announcements if we have any
This commit is contained in:
parent
7f98e8e5f1
commit
a094681dae
@ -384,8 +384,10 @@ func (r *ChannelRouter) networkHandler() {
|
|||||||
// 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.
|
||||||
prematureAnns := r.prematureAnnouncements[uint32(newBlock.Height)]
|
prematureAnns := r.prematureAnnouncements[uint32(newBlock.Height)]
|
||||||
log.Infof("Re-processing %v premature announcements for "+
|
if len(prematureAnns) != 0 {
|
||||||
"height %v", len(prematureAnns), blockHeight)
|
log.Infof("Re-processing %v premature announcements for "+
|
||||||
|
"height %v", len(prematureAnns), blockHeight)
|
||||||
|
}
|
||||||
|
|
||||||
for _, ann := range prematureAnns {
|
for _, ann := range prematureAnns {
|
||||||
if ok := r.processNetworkAnnouncement(ann); ok {
|
if ok := r.processNetworkAnnouncement(ann); ok {
|
||||||
|
Loading…
Reference in New Issue
Block a user