From 490cd374a7384e8f5459c5dd36700dc957c79270 Mon Sep 17 00:00:00 2001
From: Holger Nahrstaedt <holgernahrstaedt@gmx.de>
Date: Fri, 9 Oct 2020 23:28:33 +0200
Subject: [PATCH] Switch to normal hive nodes for unit tests

---
 beem/account.py     |  4 ++++
 tests/beem/nodes.py | 10 +++++-----
 2 files changed, 9 insertions(+), 5 deletions(-)

diff --git a/beem/account.py b/beem/account.py
index 3d817f8c..f8bc8aa3 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 498f9dd8..49ab544c 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():
-- 
GitLab