mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-01-18 21:35:24 +01:00
lntest: wait for mempool update after mining txns
This commit is contained in:
parent
a5c04bbd14
commit
55452f64e8
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user