Process mempool txs only once in GetAddressUtxo
This commit is contained in:
parent
8bf5837b26
commit
46eced6a9c
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user