itest: optimize blocks mined in testGarbageCollectLinkNodes

There's no need to mine 80ish blocks here.
This commit is contained in:
yyforyongyu 2024-11-08 15:41:14 +08:00
parent 315ff72c11
commit b655677c7d
No known key found for this signature in database
GPG Key ID: 9BCD95C4FF296868

View File

@ -10,7 +10,6 @@ import (
"github.com/btcsuite/btcd/txscript" "github.com/btcsuite/btcd/txscript"
"github.com/btcsuite/btcd/wire" "github.com/btcsuite/btcd/wire"
"github.com/btcsuite/btcwallet/wallet" "github.com/btcsuite/btcwallet/wallet"
"github.com/lightningnetwork/lnd/chainreg"
"github.com/lightningnetwork/lnd/funding" "github.com/lightningnetwork/lnd/funding"
"github.com/lightningnetwork/lnd/input" "github.com/lightningnetwork/lnd/input"
"github.com/lightningnetwork/lnd/lncfg" "github.com/lightningnetwork/lnd/lncfg"
@ -506,12 +505,6 @@ func testGarbageCollectLinkNodes(ht *lntest.HarnessTest) {
// close the channel instead. // close the channel instead.
ht.ForceCloseChannel(alice, forceCloseChanPoint) 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 // Before we test reconnection, we'll ensure that the channel has been
// fully cleaned up for both Carol and Alice. // fully cleaned up for both Carol and Alice.
ht.AssertNumPendingForceClose(alice, 0) ht.AssertNumPendingForceClose(alice, 0)