mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-01-18 21:35:24 +01:00
cmd: expose max_fee_ratio to fundpsbt command
This commit is contained in:
parent
55c3da3d13
commit
b51dde7af8
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user