Problem: Docstring for get_vallidator_change needs to be updated

Solution: Updated it
This commit is contained in:
z-bowen 2018-09-14 14:23:30 +02:00
parent 8a7cbc1ffb
commit 84754f6a06

View File

@ -38,12 +38,11 @@ class Election(Transaction):
@classmethod @classmethod
def get_validator_change(cls, bigchain): def get_validator_change(cls, bigchain):
"""Return the latest change to the validator set """Return the validator set from the most recent approved block
:return: { :return: {
'height': <block_height>, 'height': <block_height>,
'validators': <validator_set>, 'validators': <validator_set>
'election_id': <election_id_that_approved_the_change>
} }
""" """
height = bigchain.get_latest_block()['height'] height = bigchain.get_latest_block()['height']