From 46eced6a9c8d7c242df3bc5f140362ce0a9b727f Mon Sep 17 00:00:00 2001 From: Martin Boehm Date: Wed, 14 Nov 2018 14:58:51 +0100 Subject: [PATCH] Process mempool txs only once in GetAddressUtxo --- api/worker.go | 1 + 1 file changed, 1 insertion(+) diff --git a/api/worker.go b/api/worker.go index d4f92f1e..006978a6 100644 --- a/api/worker.go +++ b/api/worker.go @@ -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