mirror of
https://github.com/aljazceru/ark.git
synced 2025-12-19 13:14:21 +01:00
Add SpentBy field to client.Vtxo (#285)
This commit is contained in:
committed by
GitHub
parent
e46f2ce392
commit
b5e1ea4d57
@@ -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 {
|
||||||
|
|||||||
@@ -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(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user