removed unnecessary election method

Signed-off-by: Lorenz Herzberger <lorenzherzberger@gmail.com>
This commit is contained in:
Lorenz Herzberger 2022-09-29 15:53:13 +02:00
parent c3c9f405b0
commit 789ca8476d
No known key found for this signature in database
GPG Key ID: FA5EE906EB55316A

View File

@ -134,9 +134,6 @@ class Election(Transaction):
return False return False
def store(self, planet, height, is_concluded): # TODO: move somewhere else
planet.store_election(self.id, height, is_concluded)
def show_election(self, planet): # TODO: move somewhere else def show_election(self, planet): # TODO: move somewhere else
data = self.asset["data"] data = self.asset["data"]
if "public_key" in data.keys(): if "public_key" in data.keys():
@ -215,7 +212,7 @@ class Election(Transaction):
continue continue
validator_update = election.on_approval(planet, new_height) validator_update = election.on_approval(planet, new_height)
election.store(planet, new_height, is_concluded=True) planet.store_election(election.id, new_height, is_concluded=True)
return [validator_update] if validator_update else [] return [validator_update] if validator_update else []