mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-04 09:48:19 +01:00
keychain/interface_test: init test wallet w/o recovery window
This commit is contained in:
parent
1972a795e5
commit
b9df5e75f7
1 changed files with 5 additions and 2 deletions
|
@ -6,6 +6,7 @@ import (
|
||||||
"math/rand"
|
"math/rand"
|
||||||
"os"
|
"os"
|
||||||
"testing"
|
"testing"
|
||||||
|
"time"
|
||||||
|
|
||||||
"github.com/roasbeef/btcd/chaincfg"
|
"github.com/roasbeef/btcd/chaincfg"
|
||||||
"github.com/roasbeef/btcd/chaincfg/chainhash"
|
"github.com/roasbeef/btcd/chaincfg/chainhash"
|
||||||
|
@ -42,11 +43,13 @@ func createTestBtcWallet(coinType uint32) (func(), *wallet.Wallet, error) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, nil, err
|
return nil, nil, err
|
||||||
}
|
}
|
||||||
loader := wallet.NewLoader(&chaincfg.SimNetParams, tempDir)
|
loader := wallet.NewLoader(&chaincfg.SimNetParams, tempDir, 0)
|
||||||
|
|
||||||
pass := []byte("test")
|
pass := []byte("test")
|
||||||
|
|
||||||
baseWallet, err := loader.CreateNewWallet(pass, pass, testHDSeed[:])
|
baseWallet, err := loader.CreateNewWallet(
|
||||||
|
pass, pass, testHDSeed[:], time.Time{},
|
||||||
|
)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, nil, err
|
return nil, nil, err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue