commentary about checking for on-chain ferveo keys on node launch.

pull/3213/head
Kieran Prasch 2023-09-07 22:04:15 +02:00 committed by derekpierre
parent 949558af29
commit f67822b7aa
1 changed files with 6 additions and 1 deletions

View File

@ -325,7 +325,12 @@ class Ritualist(BaseActor):
)
# TODO: check if the ferveo public key is set on the blockchain
# onchain_ferveo_public_key = self.coordinator_agent.get_provider_public_key(self.staking_provider_address, 0)
# There is no boolean interface on-chain to determine this.
# Here we're assuming there is one global key per node.
# onchain_ferveo_public_key = self.coordinator_agent.get_provider_public_key(
# self.staking_provider_address,
# 0
# )
self.coordinator_agent.set_provider_public_key(
self.ritual_power.public_key(), transacting_power=self.transacting_power
)