From b19b26003b8a284cd6278367bfdbbb278a738c3d Mon Sep 17 00:00:00 2001 From: "Johan T. Halseth" Date: Wed, 6 Feb 2019 21:47:41 +0100 Subject: [PATCH] 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. --- lnd_test.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lnd_test.go b/lnd_test.go index e018c0b6..fb3bf82c 100644 --- a/lnd_test.go +++ b/lnd_test.go @@ -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 {