mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-06-09 14:39:54 +02: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,
|
Value: defaultUtxoMinConf,
|
||||||
},
|
},
|
||||||
coinSelectionStrategyFlag,
|
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),
|
Action: actionDecorator(fundPsbt),
|
||||||
}
|
}
|
||||||
@ -1390,6 +1396,8 @@ func fundPsbt(ctx *cli.Context) error {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
req.MaxFeeRatio = ctx.Float64("max_fee_ratio")
|
||||||
|
|
||||||
walletClient, cleanUp := getWalletClient(ctx)
|
walletClient, cleanUp := getWalletClient(ctx)
|
||||||
defer cleanUp()
|
defer cleanUp()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user