Skip to content

Commit

Permalink
walletloader: Set balance confirms to one.
Browse files Browse the repository at this point in the history
If set to zero AccountBalances will bundle unconfirmed transactions
into Spendable.
  • Loading branch information
JoeGruffins committed May 13, 2024
1 parent 25f2b70 commit 69bf30b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cgo/walletloader.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,8 @@ func walletBalance(cName *C.char) *C.char {
return errCResponse("wallet with name %q not loaded", goString(cName))
}

bals, err := w.AccountBalances(ctx, 0)
const confs = 1
bals, err := w.AccountBalances(ctx, confs)
if err != nil {
return errCResponse("w.AccountBalances error: %v", err)
}
Expand Down

0 comments on commit 69bf30b

Please sign in to comment.