lntest+itest: add new method CurrentHeight

This commit is contained in:
yyforyongyu
2024-05-02 14:05:09 +08:00
committed by yyforyongyu
parent 14e7b134d9
commit f1f341095e
14 changed files with 66 additions and 41 deletions

View File

@@ -962,7 +962,7 @@ func testZeroConfReorg(ht *lntest.HarnessTest) {
ht.AssertMinerBlockHeightDelta(tempMiner, 1)
// Wait for Carol to sync to the original miner's chain.
_, minerHeight := ht.GetBestBlock()
minerHeight := int32(ht.CurrentHeight())
ht.WaitForNodeBlockHeight(carol, minerHeight)
// Now we'll disconnect Carol's chain backend from the original miner