fix issue2689 error loading blspass (#2695)

pull/2699/head
coolcottontail 5 years ago committed by GitHub
parent 5b7d2165d8
commit 4c15caa9f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      cmd/harmony/main.go
  2. 1
      internal/blsgen/lib.go

@ -152,6 +152,9 @@ func initSetup() {
// maybe request passphrase for bls key.
if *cmkEncryptedBLSKey == "" {
passphraseForBLS()
} else {
// Get aws credentials from stdin prompt
awsSettingString, _ = blsgen.Readln(1 * time.Second)
}
// Configure log parameters
@ -657,9 +660,6 @@ func main() {
// build time.
os.Setenv("GODEBUG", "netdns=go")
// Get aws credentials from prompt timeout 1 second if there's no input
awsSettingString, _ = blsgen.Readln(1 * time.Second)
flag.Var(&p2putils.BootNodes, "bootnodes", "a list of bootnode multiaddress (delimited by ,)")
flag.Parse()

@ -163,7 +163,6 @@ func LoadAwsCMKEncryptedBLSKey(fileName, awsSettingString string) (*ffi_bls.Secr
// Create KMS service client
svc := kms.New(sess, &aws.Config{
//Region: aws.String("us-east-1"),
Region: aws.String(awsConfig.Region),
Credentials: credentials.NewStaticCredentials(awsConfig.AccessKey, awsConfig.SecretKey, ""),
})

Loading…
Cancel
Save