fixed duplicated flag and pub key empty bytes (#848)

This commit is contained in:
terence tsao
2018-11-19 15:53:01 -08:00
committed by Raul Jordan
parent 661068b99d
commit ebca2984ff
2 changed files with 2 additions and 1 deletions

View File

@@ -70,6 +70,8 @@ func NewValidatorClient(ctx *cli.Context) (*ValidatorClient, error) {
}
pubKey = blspubkey.BufferedPublicKey()
} else {
pubKey = []byte(ctx.GlobalString(types.PubKeyFlag.Name))
}
if err := ValidatorClient.startDB(ctx); err != nil {