diff --git a/beem/account.py b/beem/account.py index 3d817f8c30211f2369b2fa6fb809e0cac2496442..f8bc8aa3d6cd65beb26e958e485136f46475b3f6 100644 --- a/beem/account.py +++ b/beem/account.py @@ -1792,9 +1792,13 @@ class Account(BlockchainObject): finished = True ret = ret[1:] for vote in ret: + if vote["voter"] != account: + finished = True + continue last_update = formatTimeString(vote["last_update"]) if start_date is not None and last_update < start_date: finished = True + continue vote_list.append(vote) start_author = vote["author"] start_permlink = vote["permlink"] diff --git a/tests/beem/nodes.py b/tests/beem/nodes.py index 498f9dd83743dd4d04cc67bd8c7e7790ccd309f8..49ab544cbfd78eb313958b8a3fb033dc56cb5806 100644 --- a/tests/beem/nodes.py +++ b/tests/beem/nodes.py @@ -4,11 +4,11 @@ from beem import Steem, Hive def get_hive_nodes(): - #nodelist = NodeList() - #nodes = nodelist.get_hive_nodes() - #nodelist.update_nodes(blockchain_instance=Hive(node=nodes, num_retries=10)) - #return nodelist.get_hive_nodes() - return "https://beta.openhive.network" + nodelist = NodeList() + nodes = nodelist.get_hive_nodes() + nodelist.update_nodes(blockchain_instance=Hive(node=nodes, num_retries=10)) + return nodelist.get_hive_nodes() + #return "https://beta.openhive.network" def get_steem_nodes():