|
|
@ -292,6 +292,11 @@ var setParamsCommand = cli.Command{
|
|
|
|
Usage: "the maximum amount in satoshis that the " +
|
|
|
|
Usage: "the maximum amount in satoshis that the " +
|
|
|
|
"autoloop client will dispatch per-swap",
|
|
|
|
"autoloop client will dispatch per-swap",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
cli.IntFlag{
|
|
|
|
|
|
|
|
Name: "htlc_conf",
|
|
|
|
|
|
|
|
Usage: "the confirmation target for loop in on-chain " +
|
|
|
|
|
|
|
|
"htlcs",
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
Action: setParams,
|
|
|
|
Action: setParams,
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -422,6 +427,11 @@ func setParams(ctx *cli.Context) error {
|
|
|
|
flagSet = true
|
|
|
|
flagSet = true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ctx.IsSet("htlc_conf") {
|
|
|
|
|
|
|
|
params.HtlcConfTarget = int32(ctx.Int("htlc_conf"))
|
|
|
|
|
|
|
|
flagSet = true
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if !flagSet {
|
|
|
|
if !flagSet {
|
|
|
|
return fmt.Errorf("at least one flag required to set params")
|
|
|
|
return fmt.Errorf("at least one flag required to set params")
|
|
|
|
}
|
|
|
|
}
|
|
|
|