lnd_test: disable mempool check on justice tx rebroadcast
By mistake we were checking that only one transaction was in the mempool when looking for the justice tx, which wasn't always the case, and would make the test fail.
This commit is contained in:
parent
81b2e3502e
commit
b19b26003b
@ -7375,8 +7375,11 @@ func testRevokedCloseRetributionRemoteHodl(net *lntest.NetworkHarness,
|
||||
// attempt because of the second layer transactions, he will
|
||||
// wait until the next block epoch before trying again. Because
|
||||
// of this, we'll mine a block if we cannot find the justice tx
|
||||
// immediately.
|
||||
mineBlocks(t, net, 1, 1)
|
||||
// immediately. Since we cannot tell for sure how many
|
||||
// transactions will be in the mempool at this point, we pass 0
|
||||
// as the last argument, indicating we don't care what's in the
|
||||
// mempool.
|
||||
mineBlocks(t, net, 1, 0)
|
||||
err = lntest.WaitPredicate(func() bool {
|
||||
txid, err := findJusticeTx()
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user