diff --git a/trufflepig/bchain/mpsteem.py b/trufflepig/bchain/mpsteem.py index d8f5db2..99e9e42 100644 --- a/trufflepig/bchain/mpsteem.py +++ b/trufflepig/bchain/mpsteem.py @@ -1,8 +1,13 @@ +import logging + from steem import Steem from steem.commit import Commit from steem.steemd import Steemd +logger = logging.getLogger(__name__) + + class MPSteem(Steem): """Multiprocessing safe Steem""" def __init__(self, nodes: list, no_broadcast=False, **kwargs): @@ -10,6 +15,7 @@ def __init__(self, nodes: list, no_broadcast=False, **kwargs): self.no_broadcast = no_broadcast self.kwargs = kwargs.copy() super().__init__(nodes=nodes, no_broadcast=no_broadcast, **kwargs) + logger.info('Steem is ready, I am connected to {}.'.format(self.nodes)) def reconnect(self): """Creates a new Steemd and Commit""" diff --git a/trufflepig/config.py b/trufflepig/config.py index 0a95ec9..d020058 100644 --- a/trufflepig/config.py +++ b/trufflepig/config.py @@ -1,17 +1,18 @@ import os # The steemit nodes to load data from -NODE_URL = os.environ.get('STEEM_NODE_URL', 'https://api.steemit.com') +NODE_URL = os.environ.get('STEEM_NODE_URL','https://rpc.buildteam.io') NODE_URL2 = os.environ.get('STEEM_NODE_URL2', 'https://steemd.privex.io') NODE_URL3 = os.environ.get('STEEM_NODE_URL3', 'https://api.steem.house') NODE_URL4 = os.environ.get('STEEM_NODE_URL4', 'steemd.minnowsupportproject.org') NODE_URL5 = os.environ.get('STEEM_NODE_URL5', 'steemd.pevo.science') NODE_URL6 = os.environ.get('STEEM_NODE_URL6', 'rpc.curiesteem.com') NODE_URL7 = os.environ.get('STEEM_NODE_URL7', 'seed.bitcoiner.me') -NODE_URL8 = os.environ.get('STEEM_NODE_URL8', 'steemd.steemitstage.com') +NODE_URL8 = os.environ.get('STEEM_NODE_URL8', 'https://api.steemit.com') +NODE_URL9 = os.environ.get('STEEM_NODE_URL9', 'steemd.steemitstage.com') NODES = [x for x in (NODE_URL, NODE_URL2, NODE_URL3, NODE_URL4, NODE_URL5, NODE_URL6, - NODE_URL7, NODE_URL8) if x] + NODE_URL7, NODE_URL8, NODE_URL9) if x] # The steemit bot account and password ACCOUNT = os.environ.get('STEEM_ACCOUNT', 'trufflepig')