[cmd] set kms default enabled to false

pull/3308/head
Jacky Wang 4 years ago committed by Leo Chen
parent e68f2cfe18
commit 75dff6208e
  1. 2
      cmd/harmony/config_test.go
  2. 2
      cmd/harmony/default.go
  3. 6
      cmd/harmony/flags_test.go
  4. 2
      cmd/harmony/main.go

@ -35,7 +35,7 @@ func TestV1_0_0Config(t *testing.T) {
[BLSKeys]
KMSConfigFile = ""
KMSConfigSrcType = "shared"
KMSEnabled = true
KMSEnabled = false
KeyDir = "./.hmy/blskeys"
KeyFiles = []
MaxKeys = 10

@ -43,7 +43,7 @@ var defaultConfig = harmonyConfig{
PassSrcType: blsPassTypeAuto,
PassFile: "",
SavePassphrase: false,
KMSEnabled: true,
KMSEnabled: false,
KMSConfigSrcType: kmsConfigTypeShared,
KMSConfigFile: "",
},

@ -76,7 +76,7 @@ func TestHarmonyFlags(t *testing.T) {
PassSrcType: "auto",
PassFile: "",
SavePassphrase: false,
KMSEnabled: true,
KMSEnabled: false,
KMSConfigSrcType: "file",
KMSConfigFile: "config.json",
},
@ -515,7 +515,7 @@ func TestBLSFlags(t *testing.T) {
PassSrcType: "file",
PassFile: "xxx.pass",
SavePassphrase: false,
KMSEnabled: true,
KMSEnabled: false,
KMSConfigSrcType: "file",
KMSConfigFile: "config.json",
},
@ -533,7 +533,7 @@ func TestBLSFlags(t *testing.T) {
PassSrcType: "file",
PassFile: "xxx.pass",
SavePassphrase: true,
KMSEnabled: true,
KMSEnabled: false,
KMSConfigSrcType: "file",
KMSConfigFile: "config.json",
},

@ -66,7 +66,7 @@ Examples usage:
./harmony --run=explorer --run.shard=[shard_id]
# start a harmony internal node on testnet
./harmony --run.legacy --network
./harmony --run.legacy --network testnet
`,
Run: runHarmonyNode,
}

Loading…
Cancel
Save