OSDN Git Service

fix leak 2 (#562)
authorPaladz <yzhu101@uottawa.ca>
Wed, 27 Jan 2021 07:36:25 +0000 (15:36 +0800)
committerGitHub <noreply@github.com>
Wed, 27 Jan 2021 07:36:25 +0000 (15:36 +0800)
Co-authored-by: paladz <colt@ColtdeMacBook-Pro.local>
wallet/utxo.go

index 278853a..0c9971a 100644 (file)
@@ -112,9 +112,6 @@ func (w *Wallet) filterAccountUtxo(utxos []*account.UTXO) []*account.UTXO {
        result := make([]*account.UTXO, 0, len(utxos))
        for s := range outsByScript {
                if !segwit.IsP2WScript([]byte(s)) {
-                       for _, utxo := range outsByScript[s] {
-                               result = append(result, utxo)
-                       }
                        continue
                }