mirror of
https://github.com/QuilibriumNetwork/ceremonyclient.git
synced 2026-02-21 10:27:26 +08:00
Add public-rpc flag set to true by default (#336)
This commit is contained in:
parent
49566c2280
commit
0288ad4d01
@ -26,6 +26,7 @@ var NodeConfig *config.Config
|
||||
var simulateFail bool
|
||||
var LightNode bool = false
|
||||
var DryRun bool = false
|
||||
var publicRPC bool = true
|
||||
|
||||
var rootCmd = &cobra.Command{
|
||||
Use: "qclient",
|
||||
@ -109,7 +110,7 @@ var rootCmd = &cobra.Command{
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
if NodeConfig.ListenGRPCMultiaddr == "" {
|
||||
if publicRPC {
|
||||
fmt.Println("gRPC not enabled, using light node")
|
||||
LightNode = true
|
||||
}
|
||||
@ -184,4 +185,10 @@ func init() {
|
||||
signatureCheckDefault(),
|
||||
"bypass signature check (not recommended for binaries) (default true or value of QUILIBRIUM_SIGNATURE_CHECK env var)",
|
||||
)
|
||||
rootCmd.PersistentFlags().BoolVar(
|
||||
&publicRPC,
|
||||
"public-rpc",
|
||||
true,
|
||||
"uses the public RPC",
|
||||
)
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user