Skip to content

Commit b8ee2dc

Browse files
committed
itest: Fix the test "rbf coop close"
Fix the test "rbf coop close" that was broken by a safety check added to prevent very high fees.
1 parent 65053dc commit b8ee2dc

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

itest/lnd_coop_close_rbf_test.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ func testCoopCloseRbf(ht *lntest.HarnessTest) {
1919
// enough coins to make a 50/50 channel.
2020
cfgs := [][]string{rbfCoopFlags, rbfCoopFlags}
2121
params := lntest.OpenChannelParams{
22-
Amt: btcutil.Amount(1000000),
23-
PushAmt: btcutil.Amount(1000000 / 2),
22+
Amt: btcutil.Amount(100000),
23+
PushAmt: btcutil.Amount(100000 / 2),
2424
}
2525
chanPoints, nodes := ht.CreateSimpleNetwork(cfgs, params)
2626
alice, bob := nodes[0], nodes[1]
@@ -92,8 +92,9 @@ func testCoopCloseRbf(ht *lntest.HarnessTest) {
9292
_, err = ht.ReceiveCloseChannelUpdate(bobCloseStream)
9393
require.NoError(ht, err)
9494

95-
// We'll now attempt a fee update that we can't actually pay for. This
96-
// will actually show up as an error to the remote party.
95+
// We'll now attempt a fee update greater than DefaultMaxFeeRate. It
96+
// will be capped at DefaultMaxFeeRate, but we still can't afford it.
97+
// This will result in an error shown to the remote party.
9798
aliceRejectedFeeRate = 100_000
9899
_, _ = ht.CloseChannelAssertPending(
99100
alice, chanPoint, false,

0 commit comments

Comments
 (0)