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
UnconditionalForfeitTxs []string
Pending bool
SpentBy string
}
type Output struct {

View File

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

View File

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