Skip to content

Commit

Permalink
Add whitelist back but shuffle node list
Browse files Browse the repository at this point in the history
  • Loading branch information
agates committed Nov 1, 2022
1 parent 95004ea commit a8c3ddb
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/podping_hivewriter/hive.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import itertools
import logging
import os
from random import shuffle
from timeit import default_timer as timer
from typing import List, Optional, Set

Expand Down Expand Up @@ -31,13 +32,14 @@ def get_client(
nodes = [os.getenv("PODPING_TESTNET_NODE")]
chain = {"chain_id": os.getenv("PODPING_TESTNET_CHAINID")}
else:
"""nodes = [
nodes = [
"https://api.hive.blog",
"https://api.deathwing.me",
"https://hive-api.arcange.eu",
"https://api.openhive.network",
"https://api.hive.blue",
]"""
]
shuffle(nodes)
client = Client(
keys=posting_keys,
nodes=nodes,
Expand Down

0 comments on commit a8c3ddb

Please sign in to comment.