mirror of
https://github.com/trezor/blockbook.git
synced 2026-03-06 15:48:01 +01:00
Process mempool txs only once in GetAddressUtxo
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user