cmd: expose max_fee_ratio to fundpsbt command

This commit is contained in:
George Tsagkarelis 2024-11-04 14:35:01 +01:00
parent 55c3da3d13
commit b51dde7af8
No known key found for this signature in database
GPG Key ID: E08DEA9B12B66AF6

View File

@ -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()