From 02d616d9b72ef11920ea1f731b688bab9dc6af24 Mon Sep 17 00:00:00 2001 From: Matheus Degiovani Date: Fri, 20 Dec 2019 18:14:15 -0300 Subject: [PATCH 1/2] lnwallet: Fix external funding test --- lnwallet/interface_test.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lnwallet/interface_test.go b/lnwallet/interface_test.go index 989e7017..dd1e059b 100644 --- a/lnwallet/interface_test.go +++ b/lnwallet/interface_test.go @@ -2780,7 +2780,14 @@ func testSingleFunderExternalFundingTx(miner *rpctest.Harness, bobShimIntent, err := chanfunding.NewCannedAssembler( *chanPoint, btcutil.Amount(chanAmt), &bobFundingKey, aliceFundingKey.PubKey, false, - ).ProvisionChannel(nil) + ).ProvisionChannel(&chanfunding.Request{ + LocalAmt: btcutil.Amount(chanAmt), + MinConfs: 1, + FeeRate: 253, + ChangeAddr: func() (btcutil.Address, error) { + return bob.NewAddress(lnwallet.WitnessPubKey, true) + }, + }) if err != nil { t.Fatalf("unable to create shim intent for bob: %v", err) } From 5dffa7da1cd89115def90c1be40b580352b0b84b Mon Sep 17 00:00:00 2001 From: Matheus Degiovani Date: Fri, 20 Dec 2019 17:57:37 -0300 Subject: [PATCH 2/2] lnwallet: Re-enable tests Tests were erroneously disabled in commit b1940d67. --- lnwallet/interface_test.go | 1 - 1 file changed, 1 deletion(-) diff --git a/lnwallet/interface_test.go b/lnwallet/interface_test.go index dd1e059b..db907d5a 100644 --- a/lnwallet/interface_test.go +++ b/lnwallet/interface_test.go @@ -3147,7 +3147,6 @@ func runTests(t *testing.T, walletDriver *lnwallet.WalletDriver, strings.Contains(walletTest.name, "dual funder") { t.Skip("skipping dual funder tests for neutrino") } - return walletTest.test(miningNode, alice, bob, t) })