mirror of
https://github.com/planetmint/planetmint.git
synced 2025-11-24 14:35:45 +00:00
removed unnecessary election method
Signed-off-by: Lorenz Herzberger <lorenzherzberger@gmail.com>
This commit is contained in:
parent
c3c9f405b0
commit
789ca8476d
@ -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 []
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user