Add SpentBy field to client.Vtxo (#285)

This commit is contained in:
Pietralberto Mazza
2024-09-02 23:24:12 +02:00
committed by GitHub
parent e46f2ce392
commit b5e1ea4d57
3 changed files with 4 additions and 0 deletions

View File

@@ -81,6 +81,7 @@ type Vtxo struct {
RedeemTx string RedeemTx string
UnconditionalForfeitTxs []string UnconditionalForfeitTxs []string
Pending bool Pending bool
SpentBy string
} }
type Output struct { type Output struct {

View File

@@ -427,6 +427,7 @@ func (v vtxo) toVtxo() client.Vtxo {
Pending: v.GetPending(), Pending: v.GetPending(),
RedeemTx: redeemTx, RedeemTx: redeemTx,
UnconditionalForfeitTxs: uncondForfeitTxs, UnconditionalForfeitTxs: uncondForfeitTxs,
SpentBy: v.GetSpentBy(),
} }
} }

View File

@@ -168,6 +168,7 @@ func (a *restClient) ListVtxos(
Pending: v.Pending, Pending: v.Pending,
RedeemTx: redeemTx, RedeemTx: redeemTx,
UnconditionalForfeitTxs: uncondForfeitTxs, UnconditionalForfeitTxs: uncondForfeitTxs,
SpentBy: v.SpentBy,
}) })
} }
@@ -196,6 +197,7 @@ func (a *restClient) ListVtxos(
Amount: uint64(amount), Amount: uint64(amount),
RoundTxid: v.PoolTxid, RoundTxid: v.PoolTxid,
ExpiresAt: expiresAt, ExpiresAt: expiresAt,
SpentBy: v.SpentBy,
}) })
} }