Skip to content

Commit

Permalink
itest: optimize blocks mined in testGarbageCollectLinkNodes
Browse files Browse the repository at this point in the history
There's no need to mine 80ish blocks here.
  • Loading branch information
yyforyongyu committed Nov 8, 2024
1 parent 4026936 commit 2ab4afb
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions itest/lnd_misc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (
"github.com/btcsuite/btcd/txscript"
"github.com/btcsuite/btcd/wire"
"github.com/btcsuite/btcwallet/wallet"
"github.com/lightningnetwork/lnd/chainreg"
"github.com/lightningnetwork/lnd/funding"
"github.com/lightningnetwork/lnd/input"
"github.com/lightningnetwork/lnd/lncfg"
Expand Down Expand Up @@ -506,12 +505,6 @@ func testGarbageCollectLinkNodes(ht *lntest.HarnessTest) {
// close the channel instead.
ht.ForceCloseChannel(alice, forceCloseChanPoint)

// We'll need to mine some blocks in order to mark the channel fully
// closed.
ht.MineBlocks(
chainreg.DefaultBitcoinTimeLockDelta - defaultCSV,
)

// Before we test reconnection, we'll ensure that the channel has been
// fully cleaned up for both Carol and Alice.
ht.AssertNumPendingForceClose(alice, 0)
Expand Down

0 comments on commit 2ab4afb

Please sign in to comment.