Improve error logging related to utxo requests
parent
aceadbb10c
commit
95ac05b280
|
@ -1100,7 +1100,7 @@ func (w *Worker) getAddrDescUtxo(addrDesc bchain.AddressDescriptor, ba *db.AddrB
|
||||||
checksum.Sub(&checksum, &utxo.ValueSat)
|
checksum.Sub(&checksum, &utxo.ValueSat)
|
||||||
}
|
}
|
||||||
if checksum.Uint64() != 0 {
|
if checksum.Uint64() != 0 {
|
||||||
glog.Warning("DB inconsistency: ", addrDesc, ": checksum is not zero")
|
glog.Warning("DB inconsistency: ", addrDesc, ": checksum is not zero, checksum=", checksum.Int64())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -304,8 +304,7 @@ func (w *Worker) getXpubData(xpub string, page int, txsOnPage int, option Accoun
|
||||||
data = xpubData{gap: gap}
|
data = xpubData{gap: gap}
|
||||||
data.basePath, err = w.chainParser.DerivationBasePath(xpub)
|
data.basePath, err = w.chainParser.DerivationBasePath(xpub)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
glog.Warning("DerivationBasePath error", err)
|
return nil, 0, err
|
||||||
data.basePath = "unknown"
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
hash, err := w.db.GetBlockHash(data.dataHeight)
|
hash, err := w.db.GetBlockHash(data.dataHeight)
|
||||||
|
|
Loading…
Reference in New Issue