Skip to content

Commit

Permalink
cmd: expose max_fee_ratio to fundpsbt command
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeTsagk committed Nov 5, 2024
1 parent b8b7ffe commit 4e2ecca
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cmd/commands/walletrpc_active.go
Original file line number Diff line number Diff line change
Expand Up @@ -1246,6 +1246,12 @@ var fundPsbtCommand = cli.Command{
Value: defaultUtxoMinConf,
},
coinSelectionStrategyFlag,
cli.Float64Flag{
Name: "max_fee_ratio",
Usage: "the maximum fee to total output amounts " +
"ratio that this psbt should adhere to",
Value: chanfunding.DefaultMaxFeeRatio,
},
},
Action: actionDecorator(fundPsbt),
}
Expand Down Expand Up @@ -1374,6 +1380,8 @@ func fundPsbt(ctx *cli.Context) error {
}
}

req.MaxFeeRatio = ctx.Float64("max_fee_ratio")

walletClient, cleanUp := getWalletClient(ctx)
defer cleanUp()

Expand Down

0 comments on commit 4e2ecca

Please sign in to comment.