Merge pull request #1135 from LeoHChen/print_out_bls_pubkey

Print out bls pubkey
pull/1148/head
Leo Chen 6 years ago committed by GitHub
commit f2604e0c8a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      cmd/harmony/main.go

@ -200,9 +200,10 @@ func setUpConsensusKeyAndReturnIndex(nodeConfig *nodeconfig.ConfigType) (int, *g
fmt.Printf("error when loading bls key, err :%v\n", err)
os.Exit(100)
}
index, acc := genesis.IsBlsPublicKeyIndex(consensusPriKey.GetPublicKey().SerializeToHexStr())
pubKey := consensusPriKey.GetPublicKey()
index, acc := genesis.IsBlsPublicKeyIndex(pubKey.SerializeToHexStr())
if index < 0 {
fmt.Println("Can not found your bls key.")
fmt.Printf("cannot find your BLS key in the genesis/FN tables: %s\n", pubKey.SerializeToHexStr())
os.Exit(100)
}

Loading…
Cancel
Save