Get current round & Return spent vtxos for user (#139)

This commit is contained in:
Pietralberto Mazza
2024-04-23 16:14:35 +02:00
committed by GitHub
parent 740d4fb7b1
commit 7fc8d7d07d
10 changed files with 330 additions and 234 deletions

View File

@@ -31,8 +31,8 @@ func getVtxos(
return nil, err
}
vtxos := make([]vtxo, 0, len(response.Vtxos))
for _, v := range response.Vtxos {
vtxos := make([]vtxo, 0, len(response.GetSpendableVtxos()))
for _, v := range response.GetSpendableVtxos() {
vtxos = append(vtxos, vtxo{
amount: v.Receiver.Amount,
txid: v.Outpoint.Txid,