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:
Johan T. Halseth 2019-02-06 21:47:41 +01:00
parent 81b2e3502e
commit b19b26003b
No known key found for this signature in database
GPG Key ID: 15BAADA29DA20D26

@ -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 {