Skip to content

Commit b445f52

Browse files
committed
ignore not pending
1 parent f2a84b0 commit b445f52

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/client-sdk/covenantless_client.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1739,6 +1739,9 @@ func vtxosToTxsCovenantless(
17391739
for _, v := range append(spendable, spent...) {
17401740
// get vtxo amount
17411741
amount := int(v.Amount)
1742+
if !v.Pending {
1743+
continue
1744+
}
17421745
if v.Pending {
17431746
// find other spent vtxos that spent this one
17441747
relatedVtxos := findVtxosBySpentBy(spent, v.Txid)

0 commit comments

Comments
 (0)