Drop PendingChange field (#331)

* Drop pending_change

* Fixes

* Polish

* Fallback to psbt string
This commit is contained in:
Pietralberto Mazza
2024-09-26 14:56:20 +02:00
committed by GitHub
parent 2be78b0115
commit b15c0868b2
23 changed files with 522 additions and 454 deletions

View File

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

View File

@@ -462,7 +462,6 @@ func (v vtxo) toVtxo() client.Vtxo {
RoundTxid: v.GetPoolTxid(),
ExpiresAt: expiresAt,
Pending: v.GetPending(),
PendingChange: v.GetPendingChange(),
RedeemTx: redeemTx,
UnconditionalForfeitTxs: uncondForfeitTxs,
SpentBy: v.GetSpentBy(),

View File

@@ -177,7 +177,6 @@ func (a *restClient) ListVtxos(
RoundTxid: v.PoolTxid,
ExpiresAt: expiresAt,
Pending: v.Pending,
PendingChange: v.PendingChange,
RedeemTx: redeemTx,
UnconditionalForfeitTxs: uncondForfeitTxs,
SpentBy: v.SpentBy,

View File

@@ -33,9 +33,6 @@ type V1Vtxo struct {
// pending
Pending bool `json:"pending,omitempty"`
// pending change
PendingChange bool `json:"pendingChange,omitempty"`
// pending data
PendingData *V1PendingPayment `json:"pendingData,omitempty"`