itest: add an extra utxo when using neutrino

This commit is contained in:
yyforyongyu 2021-08-13 21:49:22 +08:00
parent 24e654ffc4
commit fda66f6a43
No known key found for this signature in database
GPG Key ID: 9BCD95C4FF296868

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
}