mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-13 18:10:25 +02:00
Merge pull request #8838 from yyforyongyu/update-pendingsweeps
cli: update `pendingsweeps` response
This commit is contained in:
@@ -10,9 +10,12 @@ type PendingSweep struct {
|
|||||||
AmountSat uint32 `json:"amount_sat"`
|
AmountSat uint32 `json:"amount_sat"`
|
||||||
SatPerVByte uint32 `json:"sat_per_vbyte"`
|
SatPerVByte uint32 `json:"sat_per_vbyte"`
|
||||||
BroadcastAttempts uint32 `json:"broadcast_attempts"`
|
BroadcastAttempts uint32 `json:"broadcast_attempts"`
|
||||||
// TODO(yy): deprecate.
|
|
||||||
NextBroadcastHeight uint32 `json:"next_broadcast_height"`
|
|
||||||
RequestedSatPerVByte uint32 `json:"requested_sat_per_vbyte"`
|
RequestedSatPerVByte uint32 `json:"requested_sat_per_vbyte"`
|
||||||
|
Immediate bool `json:"immediate"`
|
||||||
|
Budget uint64 `json:"budget"`
|
||||||
|
DeadlineHeight uint32 `json:"deadline_height"`
|
||||||
|
|
||||||
|
NextBroadcastHeight uint32 `json:"next_broadcast_height"`
|
||||||
RequestedConfTarget uint32 `json:"requested_conf_target"`
|
RequestedConfTarget uint32 `json:"requested_conf_target"`
|
||||||
Force bool `json:"force"`
|
Force bool `json:"force"`
|
||||||
}
|
}
|
||||||
@@ -26,8 +29,13 @@ func NewPendingSweepFromProto(pendingSweep *walletrpc.PendingSweep) *PendingSwee
|
|||||||
AmountSat: pendingSweep.AmountSat,
|
AmountSat: pendingSweep.AmountSat,
|
||||||
SatPerVByte: uint32(pendingSweep.SatPerVbyte),
|
SatPerVByte: uint32(pendingSweep.SatPerVbyte),
|
||||||
BroadcastAttempts: pendingSweep.BroadcastAttempts,
|
BroadcastAttempts: pendingSweep.BroadcastAttempts,
|
||||||
NextBroadcastHeight: pendingSweep.NextBroadcastHeight,
|
|
||||||
RequestedSatPerVByte: uint32(pendingSweep.RequestedSatPerVbyte),
|
RequestedSatPerVByte: uint32(pendingSweep.RequestedSatPerVbyte),
|
||||||
|
Immediate: pendingSweep.Immediate,
|
||||||
|
Budget: pendingSweep.Budget,
|
||||||
|
DeadlineHeight: pendingSweep.DeadlineHeight,
|
||||||
|
|
||||||
|
// Deprecated fields.
|
||||||
|
NextBroadcastHeight: pendingSweep.NextBroadcastHeight,
|
||||||
RequestedConfTarget: pendingSweep.RequestedConfTarget,
|
RequestedConfTarget: pendingSweep.RequestedConfTarget,
|
||||||
Force: pendingSweep.Force,
|
Force: pendingSweep.Force,
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user