mirror of
https://github.com/aljazceru/ark.git
synced 2025-12-17 20:24:21 +01:00
Drop unconditional forfeits txs in offline payment (#344)
* remove unconditionnal forfeit tx * fix sqlite vtxo repo * remove pendingData struct * delete uncond_forfeits_tx table
This commit is contained in:
@@ -196,13 +196,12 @@ func loadFixtures(jsonStr string) (vtxos, map[string]struct{}, error) {
|
||||
Txid: vtxo.Outpoint.Txid,
|
||||
VOut: vtxo.Outpoint.Vout,
|
||||
},
|
||||
Amount: amount,
|
||||
RoundTxid: vtxo.PoolTxid,
|
||||
ExpiresAt: &expireAt,
|
||||
RedeemTx: vtxo.PendingData.RedeemTx,
|
||||
UnconditionalForfeitTxs: vtxo.PendingData.UnconditionalForfeitTxs,
|
||||
Pending: vtxo.Pending,
|
||||
SpentBy: vtxo.SpentBy,
|
||||
Amount: amount,
|
||||
RoundTxid: vtxo.PoolTxid,
|
||||
ExpiresAt: &expireAt,
|
||||
RedeemTx: vtxo.PendingData.RedeemTx,
|
||||
Pending: vtxo.Pending,
|
||||
SpentBy: vtxo.SpentBy,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -221,13 +220,12 @@ func loadFixtures(jsonStr string) (vtxos, map[string]struct{}, error) {
|
||||
Txid: vtxo.Outpoint.Txid,
|
||||
VOut: vtxo.Outpoint.Vout,
|
||||
},
|
||||
Amount: amount,
|
||||
RoundTxid: vtxo.PoolTxid,
|
||||
ExpiresAt: &expireAt,
|
||||
RedeemTx: vtxo.PendingData.RedeemTx,
|
||||
UnconditionalForfeitTxs: vtxo.PendingData.UnconditionalForfeitTxs,
|
||||
Pending: vtxo.Pending,
|
||||
SpentBy: vtxo.SpentBy,
|
||||
Amount: amount,
|
||||
RoundTxid: vtxo.PoolTxid,
|
||||
ExpiresAt: &expireAt,
|
||||
RedeemTx: vtxo.PendingData.RedeemTx,
|
||||
Pending: vtxo.Pending,
|
||||
SpentBy: vtxo.SpentBy,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user