initializing the pubkeys properly in the rest of the places for the BN/VC communication to work
This commit is contained in:
parent
154c6bf8ee
commit
983d931a83
|
@ -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))
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue