lnwallet/interface_test: inti btcwallet with test coin type

This commit is contained in:
Conner Fromknecht 2018-03-12 17:32:37 -07:00
parent 99a2ce00d6
commit e99243d86b
No known key found for this signature in database
GPG Key ID: 39DE78FBE6ACB0EF
1 changed files with 4 additions and 0 deletions

View File

@ -2149,6 +2149,7 @@ func runTests(t *testing.T, walletDriver *lnwallet.WalletDriver,
NetParams: netParams, NetParams: netParams,
ChainSource: aliceClient, ChainSource: aliceClient,
FeeEstimator: feeEstimator, FeeEstimator: feeEstimator,
CoinType: keychain.CoinTypeTestnet,
} }
aliceWalletController, err = walletDriver.New(aliceWalletConfig) aliceWalletController, err = walletDriver.New(aliceWalletConfig)
if err != nil { if err != nil {
@ -2157,6 +2158,7 @@ func runTests(t *testing.T, walletDriver *lnwallet.WalletDriver,
aliceSigner = aliceWalletController.(*btcwallet.BtcWallet) aliceSigner = aliceWalletController.(*btcwallet.BtcWallet)
aliceKeyRing = keychain.NewBtcWalletKeyRing( aliceKeyRing = keychain.NewBtcWalletKeyRing(
aliceWalletController.(*btcwallet.BtcWallet).InternalWallet(), aliceWalletController.(*btcwallet.BtcWallet).InternalWallet(),
keychain.CoinTypeTestnet,
) )
bobWalletConfig := &btcwallet.Config{ bobWalletConfig := &btcwallet.Config{
@ -2166,6 +2168,7 @@ func runTests(t *testing.T, walletDriver *lnwallet.WalletDriver,
NetParams: netParams, NetParams: netParams,
ChainSource: bobClient, ChainSource: bobClient,
FeeEstimator: feeEstimator, FeeEstimator: feeEstimator,
CoinType: keychain.CoinTypeTestnet,
} }
bobWalletController, err = walletDriver.New(bobWalletConfig) bobWalletController, err = walletDriver.New(bobWalletConfig)
if err != nil { if err != nil {
@ -2174,6 +2177,7 @@ func runTests(t *testing.T, walletDriver *lnwallet.WalletDriver,
bobSigner = bobWalletController.(*btcwallet.BtcWallet) bobSigner = bobWalletController.(*btcwallet.BtcWallet)
bobKeyRing = keychain.NewBtcWalletKeyRing( bobKeyRing = keychain.NewBtcWalletKeyRing(
bobWalletController.(*btcwallet.BtcWallet).InternalWallet(), bobWalletController.(*btcwallet.BtcWallet).InternalWallet(),
keychain.CoinTypeTestnet,
) )
bio = bobWalletController.(*btcwallet.BtcWallet) bio = bobWalletController.(*btcwallet.BtcWallet)
default: default: