diff --git a/bigchaindb/elections/election.py b/bigchaindb/elections/election.py index 7700ea1c..f11bdbfc 100644 --- a/bigchaindb/elections/election.py +++ b/bigchaindb/elections/election.py @@ -35,7 +35,7 @@ class Election(Transaction): ELECTION_THRESHOLD = 2 / 3 @classmethod - def get_validator_change(cls, bigchain, height=None): + def get_validator_change(cls, bigchain): """Return the latest change to the validator set :return: { @@ -44,6 +44,7 @@ class Election(Transaction): 'election_id': } """ + height = bigchain.get_latest_block()['height'] return bigchain.get_validator_change(height) @classmethod