itest: add an extra utxo when using neutrino

This commit is contained in:
yyforyongyu committed 2021-08-19 19:35:20 +08:00
1 parent 24e654ffc4
commit fda66f6a43
1 file changed
+7
+7
View File
@@ -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
}