Skip to content

Commit

Permalink
wallet: extend TestFundTransaction
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisSchinnerl committed Aug 7, 2024
1 parent f2cc300 commit fc72ec0
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion wallet/wallet_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1392,7 +1392,20 @@ func TestFundTransaction(t *testing.T) {
}

// try again using unconfirmed balance, should work
_, _, err = w.FundV2Transaction(&txnV2, sendAmt, true)
txnV2 = types.V2Transaction{
SiacoinOutputs: []types.SiacoinOutput{
{
Address: w.Address(),
Value: sendAmt,
},
},
}
state, toSignV2, err = w.FundV2Transaction(&txnV2, sendAmt, true)
if err != nil {
t.Fatal(err)
}
w.SignV2Inputs(state, &txnV2, toSignV2)
_, err = cm.AddV2PoolTransactions(cm.Tip(), []types.V2Transaction{txnV2})
if err != nil {
t.Fatal(err)

Check failure on line 1410 in wallet/wallet_test.go

View workflow job for this annotation

GitHub Actions / test (ubuntu-latest, 1.22)

Test go.sia.tech/coreutils/wallet/TestFundTransaction failed in 0.1s

wallet_test.go:1410: transaction txid:b9274a39ce03bf97ff0726c371a3b4cb0c00b790baeeb1c93ae08da3b3742fb0 is invalid: siacoin input 0 spends output (h:191ffda71ea4b229fbcfe5165484b930928a0361be6cf5cec7199f4de54a0656) not present in the accumulator
}
Expand Down

0 comments on commit fc72ec0

Please sign in to comment.