From 55452f64e844ec0889bf1455614e829b3ff1fc3c Mon Sep 17 00:00:00 2001 From: yyforyongyu Date: Mon, 3 Jun 2024 20:37:04 +0800 Subject: [PATCH] lntest: wait for mempool update after mining txns --- lntest/harness.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lntest/harness.go b/lntest/harness.go index ba61b0ac3..4c26e1aa7 100644 --- a/lntest/harness.go +++ b/lntest/harness.go @@ -1778,6 +1778,11 @@ func (h *HarnessTest) MineBlocksAndAssertNumTxes(num uint32, h.Miner.AssertTxInBlock(blocks[0], txid) } + // Make sure the mempool has been updated. + for _, txid := range txids { + h.Miner.AssertTxNotInMempool(*txid) + } + // Finally, make sure all the active nodes are synced. bestBlock := blocks[len(blocks)-1] h.AssertActiveNodesSyncedTo(bestBlock)