remove unused queue

This commit is contained in:
ryan 2016-05-03 16:10:42 +02:00
parent 84b5e4f332
commit 9006e77296

View File

@ -506,9 +506,9 @@ class Bigchain(object):
# The use of ceiling and floor is to account for the case of an # The use of ceiling and floor is to account for the case of an
# even number of voters where half the voters have voted 'invalid' # even number of voters where half the voters have voted 'invalid'
# and half 'valid'. In this case, the block should marked invalid # and half 'valid'. In this case, the block should be marked invalid
# to avoid a hung election. In the case of an odd number of voters # to avoid a tie. In the case of an odd number of voters this is not
# this is not relevant, since one side must be a majority. # relevant, since one side must be a majority.
if n_invalid_votes >= math.ceil(n_voters / 2): if n_invalid_votes >= math.ceil(n_voters / 2):
return 'invalid' return 'invalid'
elif n_valid_votes > math.floor(n_voters / 2): elif n_valid_votes > math.floor(n_voters / 2):