From fda66f6a434429bfb2d506739c1a0aa051d77b8f Mon Sep 17 00:00:00 2001 From: yyforyongyu Date: Fri, 13 Aug 2021 21:49:22 +0800 Subject: [PATCH] itest: add an extra utxo when using neutrino --- lntest/itest/lnd_channel_force_close.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lntest/itest/lnd_channel_force_close.go b/lntest/itest/lnd_channel_force_close.go index df9ca6231..0fbd4aca3 100644 --- a/lntest/itest/lnd_channel_force_close.go +++ b/lntest/itest/lnd_channel_force_close.go @@ -81,6 +81,13 @@ func testCommitmentTransactionDeadline(net *lntest.NetworkHarness, // Send some coins to the node. net.SendCoins(ctx, t.t, btcutil.SatoshiPerBitcoin, node) + + // For neutrino backend, we need one additional UTXO to create + // the sweeping tx for the remote anchor. + if net.BackendCfg.Name() == lntest.NeutrinoBackendName { + net.SendCoins(ctx, t.t, btcutil.SatoshiPerBitcoin, node) + } + return node }