mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-11 18:22:26 +02:00
itest: fix watchtower test
This commit is contained in:
@@ -579,15 +579,14 @@ func testRevokedCloseRetributionAltruistWatchtowerCase(ht *lntest.HarnessTest,
|
|||||||
|
|
||||||
ht.AssertNumPendingForceClose(dave, 0)
|
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) {
|
if lntest.CommitTypeHasAnchors(commitType) {
|
||||||
ht.AssertNumPendingSweeps(dave, 1)
|
ht.AssertNumPendingSweeps(dave, 1)
|
||||||
|
|
||||||
// Mine a block to trigger the sweep.
|
// Mine a block to trigger the sweep.
|
||||||
ht.MineBlocks(1)
|
ht.MineEmptyBlocks(1)
|
||||||
|
|
||||||
// Mine a block to confirm the sweep.
|
|
||||||
ht.MineBlocksAndAssertNumTxes(1, 1)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check that Dave's wallet balance is increased.
|
// Check that Dave's wallet balance is increased.
|
||||||
|
Reference in New Issue
Block a user