From 9bb2ec276a3bd521a6cf9301972fab8145b329bb Mon Sep 17 00:00:00 2001 From: Scott Sadler Date: Tue, 7 Mar 2017 11:24:21 +0100 Subject: [PATCH] clarify interface of Voting.count_votes --- bigchaindb/voting.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bigchaindb/voting.py b/bigchaindb/voting.py index b4e8a9e9..57a0192b 100644 --- a/bigchaindb/voting.py +++ b/bigchaindb/voting.py @@ -68,6 +68,12 @@ class Voting: * Detect if there are multiple votes from a single node and return them in a separate "cheat" dictionary. * Votes must agree on previous block, otherwise they become invalid. + + note: + The sum of votes returned by this function does not neccesarily + equal the length of the list of votes fed in. It may differ for + example if there are found to be multiple votes submitted by a + single voter. """ prev_blocks = collections.Counter() cheat = []