initializing the pubkeys properly in the rest of the places for the BN/VC communication to work

This commit is contained in:
Viktor Kirilov 2020-08-05 13:55:28 +03:00
parent 154c6bf8ee
commit 983d931a83
2 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ import
proc fromJson*(n: JsonNode, argName: string, result: var ValidatorPubKey) =
n.kind.expect(JString, argName)
result = ValidatorPubKey.fromHex(n.getStr()).tryGet()
result = ValidatorPubKey.fromHex(n.getStr()).tryGet().initPubKey()
proc `%`*(pubkey: ValidatorPubKey): JsonNode =
result = newJString($initPubKey(pubkey))

View File

@ -215,7 +215,7 @@ programMain:
# load all the validators from the data dir into memory
for curr in vc.config.validatorKeys:
vc.attachedValidators.addLocalValidator(curr.toPubKey, curr)
vc.attachedValidators.addLocalValidator(curr.toPubKey.initPubKey, curr)
waitFor vc.client.connect($vc.config.rpcAddress, Port(vc.config.rpcPort))
info "Connected to BN",