Skip to content
Snippets Groups Projects
Commit 490cd374 authored by Holger's avatar Holger
Browse files

Switch to normal hive nodes for unit tests

parent 97c3f333
No related branches found
No related tags found
2 merge requests!5Taken current version of master branch in the https://github.com/holgern/beem,!4Original changes pushed to master at https://github.com/holgern/beem
...@@ -1792,9 +1792,13 @@ class Account(BlockchainObject): ...@@ -1792,9 +1792,13 @@ class Account(BlockchainObject):
finished = True finished = True
ret = ret[1:] ret = ret[1:]
for vote in ret: for vote in ret:
if vote["voter"] != account:
finished = True
continue
last_update = formatTimeString(vote["last_update"]) last_update = formatTimeString(vote["last_update"])
if start_date is not None and last_update < start_date: if start_date is not None and last_update < start_date:
finished = True finished = True
continue
vote_list.append(vote) vote_list.append(vote)
start_author = vote["author"] start_author = vote["author"]
start_permlink = vote["permlink"] start_permlink = vote["permlink"]
......
...@@ -4,11 +4,11 @@ from beem import Steem, Hive ...@@ -4,11 +4,11 @@ from beem import Steem, Hive
def get_hive_nodes(): def get_hive_nodes():
#nodelist = NodeList() nodelist = NodeList()
#nodes = nodelist.get_hive_nodes() nodes = nodelist.get_hive_nodes()
#nodelist.update_nodes(blockchain_instance=Hive(node=nodes, num_retries=10)) nodelist.update_nodes(blockchain_instance=Hive(node=nodes, num_retries=10))
#return nodelist.get_hive_nodes() return nodelist.get_hive_nodes()
return "https://beta.openhive.network" #return "https://beta.openhive.network"
def get_steem_nodes(): def get_steem_nodes():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment