mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 01:43:16 +01:00
itest: optimize blocks mined in testGarbageCollectLinkNodes
There's no need to mine 80ish blocks here.
This commit is contained in:
parent
315ff72c11
commit
b655677c7d
@ -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"
|
||||
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user