diff --git a/cmd/lncli/walletrpc_active.go b/cmd/lncli/walletrpc_active.go index abccb2b2c..7bae32fbf 100644 --- a/cmd/lncli/walletrpc_active.go +++ b/cmd/lncli/walletrpc_active.go @@ -660,6 +660,13 @@ var fundPsbtCommand = cli.Command{ "always use the coin selection key scope to " + "generate the change address", }, + cli.Uint64Flag{ + Name: "min_confs", + Usage: "(optional) the minimum number of " + + "confirmations each input used for the PSBT " + + "transaction must satisfy", + Value: defaultUtxoMinConf, + }, }, Action: actionDecorator(fundPsbt), } @@ -673,8 +680,11 @@ func fundPsbt(ctx *cli.Context) error { return cli.ShowCommandHelp(ctx, "fund") } + minConfs := int32(ctx.Uint64("min_confs")) req := &walletrpc.FundPsbtRequest{ - Account: ctx.String("account"), + Account: ctx.String("account"), + MinConfs: minConfs, + SpendUnconfirmed: minConfs == 0, } // Parse template flags. diff --git a/docs/release-notes/release-notes-0.16.1.md b/docs/release-notes/release-notes-0.16.1.md new file mode 100644 index 000000000..eb882a777 --- /dev/null +++ b/docs/release-notes/release-notes-0.16.1.md @@ -0,0 +1,7 @@ +# Release Notes + +## `lncli` + +- The `lncli wallet psbt fund` command now allows users to specify the + [`--min_confs` flag](https://github.com/lightningnetwork/lnd/pull/7510). +