Merge pull request #1693 from wpaulino/autopilot-zero-conf-inputs

multi: allow use of unconfirmed outputs for funding transactions
This commit is contained in:
Olaoluwa Osuntokun
2018-08-17 17:06:09 -07:00
committed by GitHub
16 changed files with 1058 additions and 635 deletions

View File

@@ -469,6 +469,12 @@ var openChannelCommand = cli.Command{
"not set, we will scale the value according to the " +
"channel size",
},
cli.Uint64Flag{
Name: "min_confs",
Usage: "(optional) the minimum number of confirmations " +
"each one of your outputs used for the funding " +
"transaction must satisfy",
},
},
Action: actionDecorator(openChannel),
}
@@ -493,6 +499,7 @@ func openChannel(ctx *cli.Context) error {
SatPerByte: ctx.Int64("sat_per_byte"),
MinHtlcMsat: ctx.Int64("min_htlc_msat"),
RemoteCsvDelay: uint32(ctx.Uint64("remote_csv_delay")),
MinConfs: int32(ctx.Uint64("min_confs")),
}
switch {