mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
Problem: Docstring for get_vallidator_change needs to be updated
Solution: Updated it
This commit is contained in:
parent
8a7cbc1ffb
commit
84754f6a06
@ -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']
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user