From 555612ff4c87f8e8c2fa752e7a8600f29bc7b15b Mon Sep 17 00:00:00 2001 From: Vanshdeep Singh Date: Mon, 6 Aug 2018 10:01:25 +0200 Subject: [PATCH] Problem: Doc strings missing Solution: Add doc string for store_validato_set --- bigchaindb/backend/localmongodb/query.py | 1 - bigchaindb/lib.py | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/bigchaindb/backend/localmongodb/query.py b/bigchaindb/backend/localmongodb/query.py index 91673432..4f56dd73 100644 --- a/bigchaindb/backend/localmongodb/query.py +++ b/bigchaindb/backend/localmongodb/query.py @@ -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) diff --git a/bigchaindb/lib.py b/bigchaindb/lib.py index f8f5777d..13d1ab71 100644 --- a/bigchaindb/lib.py +++ b/bigchaindb/lib.py @@ -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})