Skip to content

Commit b51dde7

Browse files
committed
cmd: expose max_fee_ratio to fundpsbt command
1 parent 55c3da3 commit b51dde7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

cmd/commands/walletrpc_active.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1252,6 +1252,12 @@ var fundPsbtCommand = cli.Command{
12521252
Value: defaultUtxoMinConf,
12531253
},
12541254
coinSelectionStrategyFlag,
1255+
cli.Float64Flag{
1256+
Name: "max_fee_ratio",
1257+
Usage: "the maximum fee to total output amount ratio " +
1258+
"that this psbt should adhere to",
1259+
Value: chanfunding.DefaultMaxFeeRatio,
1260+
},
12551261
},
12561262
Action: actionDecorator(fundPsbt),
12571263
}
@@ -1390,6 +1396,8 @@ func fundPsbt(ctx *cli.Context) error {
13901396
}
13911397
}
13921398

1399+
req.MaxFeeRatio = ctx.Float64("max_fee_ratio")
1400+
13931401
walletClient, cleanUp := getWalletClient(ctx)
13941402
defer cleanUp()
13951403

0 commit comments

Comments
 (0)