mirror of
https://github.com/LBRYFoundation/lbcwallet.git
synced 2025-08-23 17:47:29 +00:00
wallet: demote chainntfns error about out-of-sync blocks to debug
This commit is contained in:
parent
6b6ed89d87
commit
6d16463627
1 changed files with 12 additions and 2 deletions
|
@ -6,6 +6,7 @@ package wallet
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
|
"strings"
|
||||||
|
|
||||||
"github.com/roasbeef/btcd/txscript"
|
"github.com/roasbeef/btcd/txscript"
|
||||||
"github.com/roasbeef/btcwallet/chain"
|
"github.com/roasbeef/btcwallet/chain"
|
||||||
|
@ -135,8 +136,17 @@ func (w *Wallet) handleChainNotifications() {
|
||||||
w.rescanNotifications <- n
|
w.rescanNotifications <- n
|
||||||
}
|
}
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Errorf("Failed to process consensus server notification "+
|
// On out-of-sync blockconnected notifications, only
|
||||||
"(name: `%s`, detail: `%v`)", notificationName, err)
|
// send a debug message.
|
||||||
|
errStr := "Failed to process consensus server " +
|
||||||
|
"notification (name: `%s`, detail: `%v`)"
|
||||||
|
if notificationName == "blockconnected" &&
|
||||||
|
strings.Contains(err.Error(),
|
||||||
|
"couldn't get hash from database") {
|
||||||
|
log.Debugf(errStr, notificationName, err)
|
||||||
|
} else {
|
||||||
|
log.Errorf(errStr, notificationName, err)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
w.wg.Done()
|
w.wg.Done()
|
||||||
|
|
Loading…
Add table
Reference in a new issue