mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
remove rethinkdb call from election.py (#853)
This commit is contained in:
parent
848f771655
commit
e2c9e4e746
@ -6,7 +6,6 @@ is specified in ``create_pipeline``.
|
||||
"""
|
||||
import logging
|
||||
|
||||
import rethinkdb as r
|
||||
from multipipes import Pipeline, Node
|
||||
|
||||
from bigchaindb.pipelines.utils import ChangeFeed
|
||||
@ -31,9 +30,8 @@ class Election:
|
||||
next_vote: The next vote.
|
||||
|
||||
"""
|
||||
next_block = self.bigchain.connection.run(
|
||||
r.table('bigchain')
|
||||
.get(next_vote['vote']['voting_for_block']))
|
||||
next_block = self.bigchain.get_block(
|
||||
next_vote['vote']['voting_for_block'])
|
||||
|
||||
block_status = self.bigchain.block_election_status(next_block['id'],
|
||||
next_block['block']['voters'])
|
||||
|
Loading…
x
Reference in New Issue
Block a user