diff --git a/cmd/commands/walletrpc_active.go b/cmd/commands/walletrpc_active.go index 650388412a4..bb5982c78b9 100644 --- a/cmd/commands/walletrpc_active.go +++ b/cmd/commands/walletrpc_active.go @@ -1252,6 +1252,12 @@ var fundPsbtCommand = cli.Command{ Value: defaultUtxoMinConf, }, coinSelectionStrategyFlag, + cli.Float64Flag{ + Name: "max_fee_ratio", + Usage: "the maximum fee to total output amount ratio " + + "that this psbt should adhere to", + Value: chanfunding.DefaultMaxFeeRatio, + }, }, Action: actionDecorator(fundPsbt), } @@ -1390,6 +1396,8 @@ func fundPsbt(ctx *cli.Context) error { } } + req.MaxFeeRatio = ctx.Float64("max_fee_ratio") + walletClient, cleanUp := getWalletClient(ctx) defer cleanUp()