File tree Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change @@ -272,10 +272,24 @@ func bumpFee(ctx *cli.Context) error {
272272 client , cleanUp := getWalletClient (ctx )
273273 defer cleanUp ()
274274
275+ // Parse immediate flag (force flag was deprecated).
276+ immediate := false
277+ switch {
278+ case ctx .IsSet ("immediate" ) && ctx .IsSet ("force" ):
279+ return fmt .Errorf ("cannot set immediate and force flag at " +
280+ "the same time" )
281+
282+ case ctx .Bool ("immediate" ):
283+ immediate = true
284+
285+ case ctx .Bool ("force" ):
286+ immediate = true
287+ }
288+
275289 resp , err := client .BumpFee (ctxc , & walletrpc.BumpFeeRequest {
276290 Outpoint : protoOutPoint ,
277291 TargetConf : uint32 (ctx .Uint64 ("conf_target" )),
278- Immediate : ctx . Bool ( "force" ) ,
292+ Immediate : immediate ,
279293 Budget : ctx .Uint64 ("budget" ),
280294 })
281295 if err != nil {
Original file line number Diff line number Diff line change 127127 utxos which are unconfirmed and originated from the sweeper subsystem are not
128128 selected because they bear the risk of being replaced (BIP 125 RBF).
129129
130+ * [ Fixed] ( https://github.com/lightningnetwork/lnd/pull/8685 ) lncli "bumpfee"
131+ parsing of the immediate/force flag.
132+
130133# New Features
131134## Functional Enhancements
132135
You can’t perform that action at this time.
0 commit comments