Skip to content

Commit

Permalink
fix: optimize unconfirmed utxos determination
Browse files Browse the repository at this point in the history
  • Loading branch information
riverrun46 committed Sep 7, 2024
1 parent 494f56d commit 9b62c19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/crypto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ function pickUtxo(utxos: SA_utxo[], amount: number) {
.sort(() => Math.random() - 0.5)
const unconfirmedUtxos = utxos
.filter((utxo) => {
return utxo.height < 0
return utxo.height <= 0
})
.sort(() => Math.random() - 0.5)

Expand Down

0 comments on commit 9b62c19

Please sign in to comment.