cmd/lncli: properly spend unconfirmed utxos with openchannel
This commit is contained in:
parent
27ae22fa6c
commit
8628019ca2
@ -675,12 +675,14 @@ func openChannel(ctx *cli.Context) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
minConfs := int32(ctx.Uint64("min_confs"))
|
||||||
req := &lnrpc.OpenChannelRequest{
|
req := &lnrpc.OpenChannelRequest{
|
||||||
TargetConf: int32(ctx.Int64("conf_target")),
|
TargetConf: int32(ctx.Int64("conf_target")),
|
||||||
SatPerByte: ctx.Int64("sat_per_byte"),
|
SatPerByte: ctx.Int64("sat_per_byte"),
|
||||||
MinHtlcMsat: ctx.Int64("min_htlc_msat"),
|
MinHtlcMsat: ctx.Int64("min_htlc_msat"),
|
||||||
RemoteCsvDelay: uint32(ctx.Uint64("remote_csv_delay")),
|
RemoteCsvDelay: uint32(ctx.Uint64("remote_csv_delay")),
|
||||||
MinConfs: int32(ctx.Uint64("min_confs")),
|
MinConfs: minConfs,
|
||||||
|
SpendUnconfirmed: minConfs == 0,
|
||||||
}
|
}
|
||||||
|
|
||||||
switch {
|
switch {
|
||||||
|
Loading…
Reference in New Issue
Block a user