Skip to content

Commit

Permalink
fixup! wallet: add utxo filter function.
Browse files Browse the repository at this point in the history
  • Loading branch information
ziggie1984 committed Mar 30, 2024
1 parent 2323d8c commit 157721b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions wallet/createtx_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func TestTxToOutputsDryRun(t *testing.T) {
// database us not inflated.
dryRunTx, err := w.txToOutputs(
txOuts, nil, nil, 0, 1, 1000, CoinSelectionLargest, true,
nil,
nil, nil,
)
if err != nil {
t.Fatalf("unable to author tx: %v", err)
Expand All @@ -97,7 +97,7 @@ func TestTxToOutputsDryRun(t *testing.T) {

dryRunTx2, err := w.txToOutputs(
txOuts, nil, nil, 0, 1, 1000, CoinSelectionLargest, true,
nil,
nil, nil,
)
if err != nil {
t.Fatalf("unable to author tx: %v", err)
Expand Down Expand Up @@ -133,7 +133,7 @@ func TestTxToOutputsDryRun(t *testing.T) {
// to the database.
tx, err := w.txToOutputs(
txOuts, nil, nil, 0, 1, 1000, CoinSelectionLargest, false,
nil,
nil, nil,
)
if err != nil {
t.Fatalf("unable to author tx: %v", err)
Expand Down Expand Up @@ -283,7 +283,7 @@ func TestTxToOutputsRandom(t *testing.T) {
createTx := func() *txauthor.AuthoredTx {
tx, err := w.txToOutputs(
txOuts, nil, nil, 0, 1, feeSatPerKb,
CoinSelectionRandom, true, nil,
CoinSelectionRandom, true, nil, nil,
)
require.NoError(t, err)
return tx
Expand Down Expand Up @@ -355,7 +355,7 @@ func TestCreateSimpleCustomChange(t *testing.T) {
}
tx1, err := w.txToOutputs(
[]*wire.TxOut{targetTxOut}, nil, nil, 0, 1, 1000,
CoinSelectionLargest, true, nil,
CoinSelectionLargest, true, nil, nil,
)
require.NoError(t, err)

Expand All @@ -381,7 +381,7 @@ func TestCreateSimpleCustomChange(t *testing.T) {
tx2, err := w.txToOutputs(
[]*wire.TxOut{targetTxOut}, &waddrmgr.KeyScopeBIP0086,
&waddrmgr.KeyScopeBIP0084, 0, 1, 1000, CoinSelectionLargest,
true, nil,
true, nil, nil,
)
require.NoError(t, err)

Expand Down Expand Up @@ -465,7 +465,7 @@ func TestSelectUtxosTxoToOutpoint(t *testing.T) {
}
tx1, err := w.txToOutputs(
[]*wire.TxOut{targetTxOut}, nil, nil, 0, 1, 1000,
CoinSelectionLargest, true, selectUtxos,
CoinSelectionLargest, true, selectUtxos, nil,
)
require.NoError(t, err)

Expand Down

0 comments on commit 157721b

Please sign in to comment.