Problem: Doc strings missing

Solution: Add doc string for store_validato_set
This commit is contained in:
Vanshdeep Singh 2018-08-06 10:01:25 +02:00
parent 142ffd47fb
commit 555612ff4c
2 changed files with 4 additions and 1 deletions

View File

@ -9,7 +9,6 @@ from bigchaindb.backend.utils import module_dispatch_registrar
from bigchaindb.backend.localmongodb.connection import LocalMongoDBConnection
from bigchaindb.common.transaction import Transaction
register_query = module_dispatch_registrar(backend.query)

View File

@ -479,6 +479,10 @@ class BigchainDB(object):
return backend.query.store_pre_commit_state(self.connection, state)
def store_validator_set(self, height, validators):
"""Store validator set at a given `height`.
NOTE: If the validator set already exists at that `height` then an
exception will be raised.
"""
return backend.query.store_validator_set(self.connection, {'height': height,
'validators': validators})