mirror of
https://github.com/planetmint/planetmint.git
synced 2025-11-24 14:35:45 +00:00
adjusted has_election_concluded
Signed-off-by: Lorenz Herzberger <lorenzherzberger@gmail.com>
This commit is contained in:
parent
f6c5116266
commit
b2ad780659
@ -891,11 +891,13 @@ class Planetmint(object):
|
|||||||
if self.has_validator_set_changed(transaction):
|
if self.has_validator_set_changed(transaction):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
if not self.has_validator_election_concluded():
|
if transaction.operation == VALIDATOR_ELECTION:
|
||||||
return False
|
if not self.has_validator_election_concluded():
|
||||||
|
return False
|
||||||
|
|
||||||
if not self.has_chain_migration_concluded():
|
if transaction.operation == CHAIN_MIGRATION_ELECTION:
|
||||||
return False
|
if not self.has_chain_migration_concluded():
|
||||||
|
return False
|
||||||
|
|
||||||
election_pk = election_id_to_public_key(transaction.id)
|
election_pk = election_id_to_public_key(transaction.id)
|
||||||
votes_committed = self.get_commited_votes(transaction, election_pk)
|
votes_committed = self.get_commited_votes(transaction, election_pk)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user