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 987f1b2 commit 62db56c
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 @@ -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),
}
Expand Down Expand Up @@ -1390,6 +1396,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 62db56c

Please sign in to comment.