Skip to content

Commit

Permalink
remove redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
ukane-philemon committed Nov 23, 2022
1 parent b7ae4fd commit 496848a
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 19 deletions.
6 changes: 0 additions & 6 deletions client/asset/bch/spv.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,6 @@ func createSPVWallet(privPass []byte, seed []byte, bday time.Time, dbDir string,
return fmt.Errorf("error initializing bchwallet+neutrino logging: %w", err)
}

logDir := filepath.Join(netDir, logDirName)
err := os.MkdirAll(logDir, 0744)
if err != nil {
return fmt.Errorf("error creating wallet directories: %w", err)
}

loader := wallet.NewLoader(net, walletDir, true, 250)

pubPass := []byte(wallet.InsecurePubPassphrase)
Expand Down
7 changes: 0 additions & 7 deletions client/asset/btc/spv.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"context"
"errors"
"fmt"
"os"
"path/filepath"
"sync/atomic"
"time"
Expand Down Expand Up @@ -67,12 +66,6 @@ func createSPVWallet(privPass []byte, seed []byte, bday time.Time, dataDir strin
return fmt.Errorf("error initializing btcwallet+neutrino logging: %w", err)
}

logDir := filepath.Join(netDir, logDirName)
err := os.MkdirAll(logDir, 0744)
if err != nil {
return fmt.Errorf("error creating wallet directories: %w", err)
}

loader := wallet.NewLoader(net, walletDir, true, dbTimeout, 250)

pubPass := []byte(wallet.InsecurePubPassphrase)
Expand Down
6 changes: 0 additions & 6 deletions client/asset/ltc/spv.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,6 @@ func createSPVWallet(privPass []byte, seed []byte, bday time.Time, dbDir string,
return fmt.Errorf("error initializing dcrwallet+neutrino logging: %w", err)
}

logDir := filepath.Join(netDir, logDirName)
err := os.MkdirAll(logDir, 0744)
if err != nil {
return fmt.Errorf("error creating wallet directories: %w", err)
}

// timeout and recoverWindow arguments borrowed from btcwallet directly.
loader := wallet.NewLoader(net, walletDir, true, dbTimeout, 250)

Expand Down

0 comments on commit 496848a

Please sign in to comment.