Skip to content

Instantly share code, notes, and snippets.

@axiak
Created October 18, 2011 18:52
Show Gist options
  • Save axiak/1296319 to your computer and use it in GitHub Desktop.
Save axiak/1296319 to your computer and use it in GitHub Desktop.
...
14:52:21.265738 Unhandled Error
14:52:21.265785 Traceback (most recent call last):
14:52:21.265807 File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 542, in _runCallbacks
14:52:21.265828 current.result = callback(current.result, *args, **kw)
14:52:21.265848 File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1076, in gotResult
14:52:21.265868 _inlineCallbacks(r, g, deferred)
14:52:21.265888 File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1018, in _inlineCallbacks
14:52:21.265907 result = result.throwExceptionIntoGenerator(g)
14:52:21.265926 File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 350, in throwExceptionIntoGenerator
14:52:21.265947 return g.throw(self.type, self.value, self.tb)
14:52:21.265965 --- <exception caught here> ---
14:52:21.265983 File "/home/axiak/Documents/bitcoin/p2pool/p2pool/main.py", line 524, in work1_thread
14:52:21.266003 yield set_real_work1()
14:52:21.266022 File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1020, in _inlineCallbacks
14:52:21.266038 result = g.send(result)
14:52:21.266052 File "/home/axiak/Documents/bitcoin/p2pool/p2pool/main.py", line 170, in set_real_work1
14:52:21.266076 best_share_hash=current_work.value['best_share_hash'] if current_work.value is not None else None,
14:52:21.266092 File "/home/axiak/Documents/bitcoin/p2pool/p2pool/util/variable.py", line 56, in set
14:52:21.266108 if value == self.value:
14:52:21.266123 File "/home/axiak/Documents/bitcoin/p2pool/p2pool/bitcoin/data.py", line 335, in __cmp__
14:52:21.266139 return cmp(self._value, other._value)
14:52:21.266153 File "/home/axiak/Documents/bitcoin/p2pool/p2pool/bitcoin/data.py", line 325, in _value
14:52:21.266168 return math.shift_left(self._bits & 0x00ffffff, 8 * ((self._bits >> 24) - 3))
In the example above, self._bits is u'1a0b6d4b'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment