chainntnfs: Fix stylistic issues.
This commit is contained in:
parent
280e264e8c
commit
bc7c834362
@ -300,6 +300,7 @@ out:
|
||||
chainntnfs.Log.Warnf("Received blocks out of order: "+
|
||||
"current height=%d, new height=%d",
|
||||
currentHeight, update.blockHeight)
|
||||
continue
|
||||
}
|
||||
|
||||
currentHeight = update.blockHeight
|
||||
@ -321,11 +322,14 @@ out:
|
||||
if err != nil {
|
||||
chainntnfs.Log.Error(err)
|
||||
}
|
||||
} else {
|
||||
continue
|
||||
}
|
||||
|
||||
if update.blockHeight != currentHeight {
|
||||
chainntnfs.Log.Warnf("Received blocks out of order: "+
|
||||
"current height=%d, disconnected height=%d",
|
||||
currentHeight, update.blockHeight)
|
||||
continue
|
||||
}
|
||||
|
||||
currentHeight = update.blockHeight - 1
|
||||
@ -337,7 +341,6 @@ out:
|
||||
if err != nil {
|
||||
chainntnfs.Log.Error(err)
|
||||
}
|
||||
}
|
||||
|
||||
case item := <-b.txUpdates.ChanOut():
|
||||
newSpend := item.(*txUpdate)
|
||||
|
@ -334,6 +334,8 @@ func (n *NeutrinoNotifier) notificationDispatcher() {
|
||||
chainntnfs.Log.Warnf("Received blocks out of order: "+
|
||||
"current height=%d, new height=%d",
|
||||
n.bestHeight, update.height)
|
||||
n.heightMtx.Unlock()
|
||||
continue
|
||||
}
|
||||
|
||||
n.bestHeight = update.height
|
||||
@ -346,12 +348,16 @@ func (n *NeutrinoNotifier) notificationDispatcher() {
|
||||
if err != nil {
|
||||
chainntnfs.Log.Error(err)
|
||||
}
|
||||
} else {
|
||||
continue
|
||||
}
|
||||
|
||||
n.heightMtx.Lock()
|
||||
if update.height != n.bestHeight {
|
||||
chainntnfs.Log.Warnf("Received blocks out of order: "+
|
||||
"current height=%d, disconnected height=%d",
|
||||
n.bestHeight, update.height)
|
||||
n.heightMtx.Unlock()
|
||||
continue
|
||||
}
|
||||
|
||||
n.bestHeight = update.height - 1
|
||||
@ -364,7 +370,7 @@ func (n *NeutrinoNotifier) notificationDispatcher() {
|
||||
if err != nil {
|
||||
chainntnfs.Log.Error(err)
|
||||
}
|
||||
}
|
||||
|
||||
case err := <-n.rescanErr:
|
||||
chainntnfs.Log.Errorf("Error during rescan: %v", err)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user