mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-22 22:25:24 +01:00
itest: fix watchtower test
This commit is contained in:
parent
d4de6dd236
commit
563a5caed5
1 changed files with 4 additions and 5 deletions
|
@ -579,15 +579,14 @@ func testRevokedCloseRetributionAltruistWatchtowerCase(ht *lntest.HarnessTest,
|
|||
|
||||
ht.AssertNumPendingForceClose(dave, 0)
|
||||
|
||||
// If this is an anchor channel, Dave would sweep the anchor.
|
||||
// If this is an anchor channel, Dave would offer his sweeper the
|
||||
// anchor. However, due to no time-sensitive outputs involved, the
|
||||
// anchor sweeping won't happen as it's uneconomical.
|
||||
if lntest.CommitTypeHasAnchors(commitType) {
|
||||
ht.AssertNumPendingSweeps(dave, 1)
|
||||
|
||||
// Mine a block to trigger the sweep.
|
||||
ht.MineBlocks(1)
|
||||
|
||||
// Mine a block to confirm the sweep.
|
||||
ht.MineBlocksAndAssertNumTxes(1, 1)
|
||||
ht.MineEmptyBlocks(1)
|
||||
}
|
||||
|
||||
// Check that Dave's wallet balance is increased.
|
||||
|
|
Loading…
Add table
Reference in a new issue