mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-13 11:09:23 +01:00
wallet lncli: fix bumpfee parsing bug.
This commit is contained in:
parent
acc595195c
commit
64601a9bbe
1 changed files with 15 additions and 1 deletions
|
@ -272,10 +272,24 @@ func bumpFee(ctx *cli.Context) error {
|
|||
client, cleanUp := getWalletClient(ctx)
|
||||
defer cleanUp()
|
||||
|
||||
// Parse immediate flag (force flag was deprecated).
|
||||
immediate := false
|
||||
switch {
|
||||
case ctx.IsSet("immediate") && ctx.IsSet("force"):
|
||||
return fmt.Errorf("cannot set immediate and force flag at " +
|
||||
"the same time")
|
||||
|
||||
case ctx.Bool("immediate"):
|
||||
immediate = true
|
||||
|
||||
case ctx.Bool("force"):
|
||||
immediate = true
|
||||
}
|
||||
|
||||
resp, err := client.BumpFee(ctxc, &walletrpc.BumpFeeRequest{
|
||||
Outpoint: protoOutPoint,
|
||||
TargetConf: uint32(ctx.Uint64("conf_target")),
|
||||
Immediate: ctx.Bool("force"),
|
||||
Immediate: immediate,
|
||||
Budget: ctx.Uint64("budget"),
|
||||
})
|
||||
if err != nil {
|
||||
|
|
Loading…
Add table
Reference in a new issue