Improve error logging related to utxo requests

pull/358/head
Martin Boehm 2020-01-22 16:38:29 +01:00
parent aceadbb10c
commit 95ac05b280
2 changed files with 2 additions and 3 deletions

View File

@ -1100,7 +1100,7 @@ func (w *Worker) getAddrDescUtxo(addrDesc bchain.AddressDescriptor, ba *db.AddrB
checksum.Sub(&checksum, &utxo.ValueSat)
}
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())
}
}
}

View File

@ -304,8 +304,7 @@ func (w *Worker) getXpubData(xpub string, page int, txsOnPage int, option Accoun
data = xpubData{gap: gap}
data.basePath, err = w.chainParser.DerivationBasePath(xpub)
if err != nil {
glog.Warning("DerivationBasePath error", err)
data.basePath = "unknown"
return nil, 0, err
}
} else {
hash, err := w.db.GetBlockHash(data.dataHeight)