lntest+itest: update block height in MineBlockWithTx

Make sure we update the harness's current height and assert nodes have
been synced. Also fixes some typo found.
This commit is contained in:
yyforyongyu committed 2025-03-26 18:24:47 +08:00
1 parent 883381d266
commit 64f7a7f3d0
3 files changed
+12 -4

No files matched your search

+1 -1
View File
@@ -2570,7 +2570,7 @@ func runLocalPreimageClaimLeased(ht *lntest.HarnessTest,
// We'll now mine enough blocks so Carol decides that she needs to go
// on-chain to claim the HTLC as Bob has been inactive.
numBlocks := padCLTV(
invoiceExpiry - ht.CurrentHeight() - incomingBroadcastDelta - 1,
invoiceExpiry - ht.CurrentHeight() - incomingBroadcastDelta,
)
ht.MineBlocks(int(numBlocks))