lnwallet/interface_test: inti btcwallet with test coin type
This commit is contained in:
parent
99a2ce00d6
commit
e99243d86b
@ -2149,6 +2149,7 @@ func runTests(t *testing.T, walletDriver *lnwallet.WalletDriver,
|
||||
NetParams: netParams,
|
||||
ChainSource: aliceClient,
|
||||
FeeEstimator: feeEstimator,
|
||||
CoinType: keychain.CoinTypeTestnet,
|
||||
}
|
||||
aliceWalletController, err = walletDriver.New(aliceWalletConfig)
|
||||
if err != nil {
|
||||
@ -2157,6 +2158,7 @@ func runTests(t *testing.T, walletDriver *lnwallet.WalletDriver,
|
||||
aliceSigner = aliceWalletController.(*btcwallet.BtcWallet)
|
||||
aliceKeyRing = keychain.NewBtcWalletKeyRing(
|
||||
aliceWalletController.(*btcwallet.BtcWallet).InternalWallet(),
|
||||
keychain.CoinTypeTestnet,
|
||||
)
|
||||
|
||||
bobWalletConfig := &btcwallet.Config{
|
||||
@ -2166,6 +2168,7 @@ func runTests(t *testing.T, walletDriver *lnwallet.WalletDriver,
|
||||
NetParams: netParams,
|
||||
ChainSource: bobClient,
|
||||
FeeEstimator: feeEstimator,
|
||||
CoinType: keychain.CoinTypeTestnet,
|
||||
}
|
||||
bobWalletController, err = walletDriver.New(bobWalletConfig)
|
||||
if err != nil {
|
||||
@ -2174,6 +2177,7 @@ func runTests(t *testing.T, walletDriver *lnwallet.WalletDriver,
|
||||
bobSigner = bobWalletController.(*btcwallet.BtcWallet)
|
||||
bobKeyRing = keychain.NewBtcWalletKeyRing(
|
||||
bobWalletController.(*btcwallet.BtcWallet).InternalWallet(),
|
||||
keychain.CoinTypeTestnet,
|
||||
)
|
||||
bio = bobWalletController.(*btcwallet.BtcWallet)
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user