Process mempool txs only once in GetAddressUtxo

This commit is contained in:
Martin Boehm 2018-11-14 14:58:51 +01:00
parent 8bf5837b26
commit 46eced6a9c

View File

@ -490,6 +490,7 @@ func (w *Worker) GetAddressUtxo(address string) ([]AddressUtxo, error) {
if err != nil {
return nil, errors.Annotatef(err, "getAddressTxids %v true", address)
}
txm = UniqueTxidsInReverse(txm)
for _, txid := range txm {
bchainTx, _, err := w.txCache.GetTransaction(txid)
// mempool transaction may fail