mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
remove unused queue
This commit is contained in:
parent
84b5e4f332
commit
9006e77296
@ -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):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user