Skip to content

Commit f6310bb

Browse files
lncli: add include_raw_tx flag to bumpfee command
1 parent 4c37f2b commit f6310bb

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

cmd/commands/walletrpc_active.go

+16-5
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,16 @@ var bumpFeeCommand = cli.Command{
307307
the budget for fee bumping; for existing inputs, their current budgets
308308
will be retained.`,
309309
},
310+
cli.BoolFlag{
311+
Name: "include_raw_tx",
312+
Usage: "include the raw transaction hex for the " +
313+
"sweep transaction on success. " +
314+
"It waits for the batcher to create a " +
315+
"transaction, which might take a while. " +
316+
"The duration is at least as long as " +
317+
"the configured sweeper.batchwindowduration, " +
318+
"with the default set to 30 seconds",
319+
},
310320
},
311321
Action: actionDecorator(bumpFee),
312322
}
@@ -344,11 +354,12 @@ func bumpFee(ctx *cli.Context) error {
344354
}
345355

346356
resp, err := client.BumpFee(ctxc, &walletrpc.BumpFeeRequest{
347-
Outpoint: protoOutPoint,
348-
TargetConf: uint32(ctx.Uint64("conf_target")),
349-
Immediate: immediate,
350-
Budget: ctx.Uint64("budget"),
351-
SatPerVbyte: ctx.Uint64("sat_per_vbyte"),
357+
Outpoint: protoOutPoint,
358+
TargetConf: uint32(ctx.Uint64("conf_target")),
359+
Immediate: immediate,
360+
Budget: ctx.Uint64("budget"),
361+
SatPerVbyte: ctx.Uint64("sat_per_vbyte"),
362+
IncludeRawTx: ctx.Bool("include_raw_tx"),
352363
})
353364
if err != nil {
354365
return err

0 commit comments

Comments
 (0)