@@ -169,7 +169,7 @@ func sendCoins(t *testing.T, miner *rpctest.Harness,
169169 t .Helper ()
170170
171171 tx , err := sender .SendOutputs (
172- []* wire.TxOut {output }, feeRate , minConf , labels .External ,
172+ nil , []* wire.TxOut {output }, feeRate , minConf , labels .External ,
173173 sender .Cfg .CoinSelectionStrategy ,
174174 )
175175 require .NoError (t , err , "unable to send transaction" )
@@ -1193,7 +1193,7 @@ func testListTransactionDetails(miner *rpctest.Harness,
11931193 require .NoError (t , err , "unable to make output script" )
11941194 burnOutput := wire .NewTxOut (outputAmt , outputScript )
11951195 burnTX , err := alice .SendOutputs (
1196- []* wire.TxOut {burnOutput }, 2500 , 1 , labels .External ,
1196+ nil , []* wire.TxOut {burnOutput }, 2500 , 1 , labels .External ,
11971197 alice .Cfg .CoinSelectionStrategy ,
11981198 )
11991199 require .NoError (t , err , "unable to create burn tx" )
@@ -1453,7 +1453,7 @@ func testTransactionSubscriptions(miner *rpctest.Harness,
14531453
14541454 burnOutput := wire .NewTxOut (outputAmt , outputScript )
14551455 tx , err := alice .SendOutputs (
1456- []* wire.TxOut {burnOutput }, 2500 , 1 , labels .External ,
1456+ nil , []* wire.TxOut {burnOutput }, 2500 , 1 , labels .External ,
14571457 alice .Cfg .CoinSelectionStrategy ,
14581458 )
14591459 require .NoError (t , err , "unable to create tx" )
@@ -1642,7 +1642,7 @@ func newTx(t *testing.T, r *rpctest.Harness, pubKey *btcec.PublicKey,
16421642 PkScript : keyScript ,
16431643 }
16441644 tx , err := alice .SendOutputs (
1645- []* wire.TxOut {newOutput }, 2500 , 1 , labels .External ,
1645+ nil , []* wire.TxOut {newOutput }, 2500 , 1 , labels .External ,
16461646 alice .Cfg .CoinSelectionStrategy ,
16471647 )
16481648 require .NoError (t , err , "unable to create output" )
@@ -1958,7 +1958,7 @@ func testSignOutputUsingTweaks(r *rpctest.Harness,
19581958 PkScript : keyScript ,
19591959 }
19601960 tx , err := alice .SendOutputs (
1961- []* wire.TxOut {newOutput }, 2500 , 1 , labels .External ,
1961+ nil , []* wire.TxOut {newOutput }, 2500 , 1 , labels .External ,
19621962 alice .Cfg .CoinSelectionStrategy ,
19631963 )
19641964 if err != nil {
@@ -2077,7 +2077,7 @@ func testReorgWalletBalance(r *rpctest.Harness, w *lnwallet.LightningWallet,
20772077 PkScript : script ,
20782078 }
20792079 tx , err := w .SendOutputs (
2080- []* wire.TxOut {output }, 2500 , 1 , labels .External ,
2080+ nil , []* wire.TxOut {output }, 2500 , 1 , labels .External ,
20812081 w .Cfg .CoinSelectionStrategy ,
20822082 )
20832083 require .NoError (t , err , "unable to send outputs" )
@@ -2302,7 +2302,7 @@ func testSpendUnconfirmed(miner *rpctest.Harness,
23022302 PkScript : alicePkScript ,
23032303 }
23042304 _ , err = bob .SendOutputs (
2305- []* wire.TxOut {output }, txFeeRate , 0 , labels .External ,
2305+ nil , []* wire.TxOut {output }, txFeeRate , 0 , labels .External ,
23062306 bob .Cfg .CoinSelectionStrategy ,
23072307 )
23082308 if err == nil {
@@ -2329,7 +2329,7 @@ func testSpendUnconfirmed(miner *rpctest.Harness,
23292329 // First, verify that we don't have enough balance to send the coins
23302330 // using confirmed outputs only.
23312331 _ , err = bob .SendOutputs (
2332- []* wire.TxOut {output }, txFeeRate , 1 , labels .External ,
2332+ nil , []* wire.TxOut {output }, txFeeRate , 1 , labels .External ,
23332333 bob .Cfg .CoinSelectionStrategy ,
23342334 )
23352335 if err == nil {
@@ -2571,7 +2571,7 @@ func testCreateSimpleTx(r *rpctest.Harness, w *lnwallet.LightningWallet,
25712571
25722572 // Now try creating a tx spending to these outputs.
25732573 createTx , createErr := w .CreateSimpleTx (
2574- outputs , feeRate , minConfs ,
2574+ nil , outputs , feeRate , minConfs ,
25752575 w .Cfg .CoinSelectionStrategy , true ,
25762576 )
25772577 switch {
@@ -2590,7 +2590,7 @@ func testCreateSimpleTx(r *rpctest.Harness, w *lnwallet.LightningWallet,
25902590 // only difference is that the dry run tx is not signed, and
25912591 // that the change output position might be different.
25922592 tx , sendErr := w .SendOutputs (
2593- outputs , feeRate , minConfs , labels .External ,
2593+ nil , outputs , feeRate , minConfs , labels .External ,
25942594 w .Cfg .CoinSelectionStrategy ,
25952595 )
25962596 switch {
0 commit comments