Merge pull request #1222 from bigchaindb/consensus-cleanup

Don't load consensus in vote pipeline (unneeded)
This commit is contained in:
libscott 2017-03-01 17:50:58 +01:00 committed by GitHub
commit d48c72682b

View File

@ -13,9 +13,7 @@ from multipipes import Pipeline, Node
import bigchaindb
from bigchaindb import Bigchain
from bigchaindb import backend
from bigchaindb import config_utils
from bigchaindb.backend.changefeed import ChangeFeed
from bigchaindb.consensus import BaseConsensusRules
from bigchaindb.models import Transaction, Block
from bigchaindb.common import exceptions
@ -37,13 +35,6 @@ class Vote:
# we need to create a temporary instance of BigchainDB that we use
# only to query RethinkDB
consensusPlugin = bigchaindb.config.get('consensus_plugin')
if consensusPlugin:
self.consensus = config_utils.load_consensus_plugin(consensusPlugin)
else:
self.consensus = BaseConsensusRules
# This is the Bigchain instance that will be "shared" (aka: copied)
# by all the subprocesses