Skip to content
This repository has been archived by the owner on Jun 30, 2021. It is now read-only.

Bug/pos and pow currencies #138

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

BeOleg
Copy link

@BeOleg BeOleg commented Jan 26, 2017

  • support POW/POS coins (both)
  • Allow MonitorNetworkMulti job manager to receive config params from the YAML config (extra useful if you run redis on a remote hoste or docker/docker-compose, does not restrict you to local machine)
  • fail silently (with logging) if the current block is unavailable for some reason
  • more info
    https://groups.google.com/forum/#!topic/simplecrypto-dev/eKnBSUsU9Os

Full error:

[ 26 January 2017 14:14 ] Yuri: power-mining_1  | CoinRPCException: Invalid mode
power-mining_1  | ‎‎2017-01-26 10:28:51,509 [MonitorNetwork_MTLMC] [ERROR] {u'message': u'Invalid mode', u'code': -8}
[ 26 January 2017 14:15 ] Yuri: power-mining_1  | CoinRPCException: Invalid mode
power-mining_1  | ‎2017-01-26 10:21:18,061 [MonitorNetwork_MTLMC] [INFO] Retry 4 for connection 172.13.0.7:10435
power-mining_1  | ‎2017-01-26 10:21:18,064 [MonitorNetwork_MTLMC] [INFO] Block failed to submit to the server 172.13.0.7:10435 with submitblock! Unable to sign block, wallet locked?
power-mining_1  | ‎2017-01-26 10:21:18,064 [MonitorNetwork_MTLMC] [ERROR] {u'message': u'Unable to sign block, wallet locked?', u'code': -100}
power-mining_1  | Traceback (most recent call last):
power-mining_1  |   File "/home/powerpool/powerpool/jobmanagers/monitor_network.py", line 178, in submit_block
power-mining_1  |     res = conn.submitblock(block)
power-mining_1  |   File "/usr/local/lib/python2.7/dist-packages/cryptokit/rpc.py", line 194, in __call__
power-mining_1  |     return self._get_response(response)
power-mining_1  |   File "/usr/local/lib/python2.7/dist-packages/cryptokit/rpc.py", line 222, in _get_response
power-mining_1  |     raise CoinRPCException(response['error'])
power-mining_1  | CoinRPCException: Unable to sign block, wallet locked?
power-mining_1  | ‎2017-01-26 10:21:18,065 [MonitorNetwork_MTLMC] [ERROR] Block failed to submit to the server 172.13.0.7:10435!
power-mining_1  | Traceback (most recent call last):
power-mining_1  |   File "/home/powerpool/powerpool/jobmanagers/monitor_network.py", line 185, in submit_block
power-mining_1  |     res = conn.getblocktemplate({'mode': 'submit', 'data': block})
power-mining_1  |   File "/usr/local/lib/python2.7/dist-packages/cryptokit/rpc.py", line 194, in __call__
power-mining_1  |     return self._get_response(response)
power-mining_1  |   File "/usr/local/lib/python2.7/dist-packages/cryptokit/rpc.py", line 222, in _get_response
power-mining_1  |     raise CoinRPCException(response['error'])
power-mining_1  | CoinRPCException: Invalid mode
power-mining_1  | ‎2017-01-26 10:21:18,066 [MonitorNetwork_MTLMC] [ERROR] {u'message': u'Invalid mode', u'code': -8}
power-mining_1  | ‎2017-01-26 10:21:18,066 [MonitorNetwork_MTLMC] [ERROR] Block failed to submit to the server 172.13.0.7:10435, server returned failed!
power-mining_1  | Traceback (most recent call last):
power-mining_1  |   File "/home/powerpool/powerpool/jobmanagers/monitor_network.py", line 185, in submit_block
power-mining_1  |     res = conn.getblocktemplate({'mode': 'submit', 'data': block})
power-mining_1  |   File "/usr/local/lib/python2.7/dist-packages/cryptokit/rpc.py", line 194, in __call__
power-mining_1  |     return self._get_response(response)
power-mining_1  |   File "/usr/local/lib/python2.7/dist-packages/cryptokit/rpc.py", line 222, in _get_response
power-mining_1  |     raise CoinRPCException(response['error'])
power-mining_1  | CoinRPCException: Invalid mode
power-mining_1  | ‎2017-01-26 10:21:19,066 [MonitorNetwork_MTLMC] [INFO] Retry 5 for connection 172.13.0.7:10435
power-mining_1  | ‎2017-01-26 10:21:19,067 [MonitorNetwork_MTLMC] [INFO] Recording block submission outcome False after 5.‎04199004173
power-mining_1  | ‎2017-01-26 10:21:19,068 [MonitorNetwork_MTLMC] [INFO] MTLMC BLOCK ca0fc7755b730b88f031dc7826001dda559391dd92d29249c365be1d2670d7f0:‎1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants