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,
|
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:
|
||||||
|
Loading…
Reference in New Issue
Block a user