@@ -5,16 +5,19 @@ import "github.com/lightningnetwork/lnd/lnrpc/walletrpc"
55// PendingSweep is a CLI-friendly type of the walletrpc.PendingSweep proto. We
66// use this to show more useful string versions of byte slices and enums.
77type PendingSweep struct {
8- OutPoint OutPoint `json:"outpoint"`
9- WitnessType string `json:"witness_type"`
10- AmountSat uint32 `json:"amount_sat"`
11- SatPerVByte uint32 `json:"sat_per_vbyte"`
12- BroadcastAttempts uint32 `json:"broadcast_attempts"`
13- // TODO(yy): deprecate.
14- NextBroadcastHeight uint32 `json:"next_broadcast_height"`
15- RequestedSatPerVByte uint32 `json:"requested_sat_per_vbyte"`
16- RequestedConfTarget uint32 `json:"requested_conf_target"`
17- Force bool `json:"force"`
8+ OutPoint OutPoint `json:"outpoint"`
9+ WitnessType string `json:"witness_type"`
10+ AmountSat uint32 `json:"amount_sat"`
11+ SatPerVByte uint32 `json:"sat_per_vbyte"`
12+ BroadcastAttempts uint32 `json:"broadcast_attempts"`
13+ RequestedSatPerVByte uint32 `json:"requested_sat_per_vbyte"`
14+ Immediate bool `json:"immediate"`
15+ Budget uint64 `json:"budget"`
16+ DeadlineHeight uint32 `json:"deadline_height"`
17+
18+ NextBroadcastHeight uint32 `json:"next_broadcast_height"`
19+ RequestedConfTarget uint32 `json:"requested_conf_target"`
20+ Force bool `json:"force"`
1821}
1922
2023// NewPendingSweepFromProto converts the walletrpc.PendingSweep proto type into
@@ -26,9 +29,14 @@ func NewPendingSweepFromProto(pendingSweep *walletrpc.PendingSweep) *PendingSwee
2629 AmountSat : pendingSweep .AmountSat ,
2730 SatPerVByte : uint32 (pendingSweep .SatPerVbyte ),
2831 BroadcastAttempts : pendingSweep .BroadcastAttempts ,
29- NextBroadcastHeight : pendingSweep .NextBroadcastHeight ,
3032 RequestedSatPerVByte : uint32 (pendingSweep .RequestedSatPerVbyte ),
31- RequestedConfTarget : pendingSweep .RequestedConfTarget ,
32- Force : pendingSweep .Force ,
33+ Immediate : pendingSweep .Immediate ,
34+ Budget : pendingSweep .Budget ,
35+ DeadlineHeight : pendingSweep .DeadlineHeight ,
36+
37+ // Deprecated fields.
38+ NextBroadcastHeight : pendingSweep .NextBroadcastHeight ,
39+ RequestedConfTarget : pendingSweep .RequestedConfTarget ,
40+ Force : pendingSweep .Force ,
3341 }
3442}
0 commit comments