Coder Social home page Coder Social logo

p2pool's Introduction

Requirements:

Generic:

  • Bitcoin >=0.11.1
  • Python >=2.6
  • Twisted >=10.0.0
  • python-argparse (for Python =2.6)

Linux:

  • sudo apt-get install python-zope.interface python-twisted python-twisted-web
  • sudo apt-get install python-argparse # if on Python 2.6

Windows:

Running P2Pool:

To use P2Pool, you must be running your own local bitcoind. For standard configurations, using P2Pool should be as simple as:

python run_p2pool.py

Then run your miner program, connecting to 127.0.0.1 on port 9332 with any username and password.

If you are behind a NAT, you should enable TCP port forwarding on your router. Forward port 9333 to the host running P2Pool.

Run for additional options.

python run_p2pool.py --help

Donations towards further development:

1HNeqi3pJRNvXybNX4FKzZgYJsdTSqJTbk

Official wiki:

https://en.bitcoin.it/wiki/P2Pool

Alternate web frontend:

Notes for Litecoin:

Requirements:

In order to run P2Pool with the Litecoin network, you would need to build and install the ltc_scrypt module that includes the scrypt proof of work code that Litecoin uses for hashes.

Linux:

cd litecoin_scrypt
sudo python setup.py install

Windows (mingw):

In bash type this:

cd litecoin_scrypt
C:\Python27\python.exe setup.py build --compile=mingw32 install

Windows (Microsoft Visual C++)

  • Open visual studio console

In bash type this:

SET VS90COMNTOOLS=%VS110COMNTOOLS%	           # For visual c++ 2012
SET VS90COMNTOOLS=%VS100COMNTOOLS%             # For visual c++ 2010
cd litecoin_scrypt
C:\Python27\python.exe setup.py build --compile=mingw32 install

If you run into an error with unrecognized command line option '-mno-cygwin', see this: http://stackoverflow.com/questions/6034390/compiling-with-cython-and-mingw-produces-gcc-error-unrecognized-command-line-o

Running P2Pool:

Run P2Pool with the "--net litecoin" option. Run your miner program, connecting to 127.0.0.1 on port 9327. Forward port 9338 to the host running P2Pool.

Litecoin's use of ports 9333 and 9332 conflicts with P2Pool running on the Bitcoin network. To avoid problems, add these lines to litecoin.conf and restart litecoind:

rpcport=10332
port=10333

Sponsors:

Thanks to:

  • The Bitcoin Foundation for its generous support of P2Pool
  • The Litecoin Project for its generous donations to P2Pool

License:

Available here

p2pool's People

Contributors

blrhc avatar coblee avatar cohibaa avatar d0gzpaw avatar dcod3d avatar drazisil avatar faca5 avatar forrestv avatar gades avatar gmaxwell avatar goblin avatar grimd34th avatar harukama avatar iongchun avatar kevinxucs avatar krellan avatar m0glie avatar maaku avatar midnightmagic avatar napieraj avatar nocarryr avatar rav3npl avatar roy7 avatar squidicuzz avatar tadasvaranavicius avatar thrasher- avatar tierradelfuego avatar veqtrus avatar whitj00 avatar wtogami avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

p2pool's Issues

Payouts is always 0.00000000

On the statistics page "Payouts if a block were found NOW:" payouts is always 0.00000000.
Maybe it has to do this that when I go to the page I get this error statistics:

2012-04-16 17:42:43.151106 > Unhandled Error
2012-04-16 17:42:43.151203 > Traceback (most recent call last):
2012-04-16 17:42:43.151232 > File "/usr/local/lib/python2.7/site-packages/twisted/protocols/basic.py", line 564, in dataReceived
2012-04-16 17:42:43.151261 > why = self.lineReceived(line)
2012-04-16 17:42:43.151287 > File "/usr/local/lib/python2.7/site-packages/twisted/web/http.py", line 1551, in lineReceived
2012-04-16 17:42:43.151314 > self.allContentReceived()
2012-04-16 17:42:43.151339 > File "/usr/local/lib/python2.7/site-packages/twisted/web/http.py", line 1618, in allContentReceived
2012-04-16 17:42:43.151366 > req.requestReceived(command, path, version)
2012-04-16 17:42:43.151391 > File "/usr/local/lib/python2.7/site-packages/twisted/web/http.py", line 773, in requestReceived
2012-04-16 17:42:43.151445 > self.process()
2012-04-16 17:42:43.151470 > --- ---
2012-04-16 17:42:43.151513 > File "/usr/local/lib/python2.7/site-packages/twisted/web/server.py", line 132, in process
2012-04-16 17:42:43.151540 > self.render(resrc)
2012-04-16 17:42:43.151566 > File "/usr/local/lib/python2.7/site-packages/twisted/web/server.py", line 167, in render
2012-04-16 17:42:43.151592 > body = resrc.render(self)
2012-04-16 17:42:43.151616 > File "/usr/local/lib/python2.7/site-packages/twisted/web/resource.py", line 216, in render
2012-04-16 17:42:43.151642 > return m(request)
2012-04-16 17:42:43.151667 > File "/home/piotrek/btc/p2pool/p2pool/web.py", line 188, in render_GET
2012-04-16 17:42:43.151722 > res = self.func(*self.args)
2012-04-16 17:42:43.151750 > File "/home/piotrek/btc/p2pool/p2pool/web.py", line 195, in
2012-04-16 17:42:43.151776 > web_root.putChild('current_payouts', WebInterface(lambda: dict((bitcoin_data.script2_to_address(script, net.PARENT), value/1e8) for script, value in get_current_txouts().iteritems())))
2012-04-16 17:42:43.151805 > File "/home/piotrek/btc/p2pool/p2pool/web.py", line 195, in
2012-04-16 17:42:43.151830 > web_root.putChild('current_payouts', WebInterface(lambda: dict((bitcoin_data.script2_to_address(script, net.PARENT), value/1e8) for script, value in get_current_txouts().iteritems())))
2012-04-16 17:42:43.151858 > File "/home/piotrek/btc/p2pool/p2pool/bitcoin/data.py", line 271, in script2_to_address
2012-04-16 17:42:43.151905 > return pubkey_to_address(pubkey, net)
2012-04-16 17:42:43.151934 > File "/home/piotrek/btc/p2pool/p2pool/bitcoin/data.py", line 246, in pubkey_to_address
2012-04-16 17:42:43.151982 > return pubkey_hash_to_address(hash160(pubkey), net)
2012-04-16 17:42:43.152010 > File "/home/piotrek/btc/p2pool/p2pool/bitcoin/data.py", line 12, in hash160
2012-04-16 17:42:43.152036 > return pack.IntType(160).unpack(hashlib.new('ripemd160', hashlib.sha256(data).digest()).digest())
2012-04-16 17:42:43.152062 > File "/usr/local/lib/python2.7/hashlib.py", line 107, in __py_new
2012-04-16 17:42:43.152088 > return __get_builtin_constructor(name)(string)
2012-04-16 17:42:43.152113 > File "/usr/local/lib/python2.7/hashlib.py", line 88, in __get_builtin_constructor
2012-04-16 17:42:43.152601 > raise ValueError('unsupported hash type %s' % name)
2012-04-16 17:42:43.152632 > exceptions.ValueError: unsupported hash type ripemd160

Enetring on /static/ throws error in log

Every time I click lick from graphs page it throws an spam:

2012-12-15 17:01:09.548910 > Error in DeferredResource handler:
2012-12-15 17:01:09.549110 > Traceback (most recent call last):
2012-12-15 17:01:09.549181 >   File "/home/rav3n/p2pool/p2pool/util/deferred_resource.py", line 24, in render
2012-12-15 17:01:09.549443 >     defer.maybeDeferred(resource.Resource.render, self, request).addCallbacks(finish, finish_error)
2012-12-15 17:01:09.549704 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 134, in maybeDeferred
2012-12-15 17:01:09.550155 >     result = f(*args, **kw)
2012-12-15 17:01:09.550348 >   File "/usr/lib/python2.7/dist-packages/twisted/web/resource.py", line 216, in render
2012-12-15 17:01:09.550498 >     return m(request)
2012-12-15 17:01:09.550700 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1187, in unwindGenerator
2012-12-15 17:01:09.550854 >     return _inlineCallbacks(None, gen, Deferred())
2012-12-15 17:01:09.551340 > --- <exception caught here> ---
2012-12-15 17:01:09.551624 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1045, in _inlineCallbacks
2012-12-15 17:01:09.551806 >     result = g.send(result)
2012-12-15 17:01:09.552037 >   File "/home/rav3n/p2pool/p2pool/web.py", line 195, in render_GET
2012-12-15 17:01:09.552197 >     res = yield self.func(*self.args)
2012-12-15 17:01:09.552496 >   File "/home/rav3n/p2pool/p2pool/web.py", line 229, in <lambda>
2012-12-15 17:01:09.552655 >     ) for s in node.tracker.get_chain(node.best_share_var.value, min(node.tracker.get_height(node.best_share_var.value), 24*60*60//node.net.SHARE_PERIOD)) if s.pow_hash <= s.header['bits'].target]))
2012-12-15 17:01:09.552821 >   File "/home/rav3n/p2pool/p2pool/util/pack.py", line 63, in unpack
2012-12-15 17:01:09.552972 >     obj = self._unpack(data)
2012-12-15 17:01:09.553034 >   File "/home/rav3n/p2pool/p2pool/util/pack.py", line 42, in _unpack
2012-12-15 17:01:09.553121 >     obj, (data2, pos) = self.read((data, 0))
2012-12-15 17:01:09.553403 >   File "/home/rav3n/p2pool/p2pool/util/pack.py", line 216, in read
2012-12-15 17:01:09.553550 >     data, file = read(file, self.bytes)
2012-12-15 17:01:09.553857 >   File "/home/rav3n/p2pool/p2pool/util/pack.py", line 16, in read
2012-12-15 17:01:09.554160 >     raise EarlyEnd()
2012-12-15 17:01:09.554310 > p2pool.util.pack.EarlyEnd:

Error

I had this error today:
19:08:36.753172 Traceback (most recent call last):
19:08:36.753253 File "/home/piotrek/Apps/p2pool/p2pool/p2p.py", line 233, in handle_share1as
19:08:36.753351 self.node.handle_shares(shares, self)
19:08:36.753427 File "/home/piotrek/Apps/p2pool/p2pool/main.py", line 259, in p2p_shares
19:08:36.753537 set_real_work2()
19:08:36.753611 File "/home/piotrek/Apps/p2pool/p2pool/main.py", line 168, in set_real_work2
19:08:36.753689 best, desired = tracker.think(ht, current_work.value['previous_block'], time.time() - current_work2.value['clock_offset'])
19:08:36.753768 File "/home/piotrek/Apps/p2pool/p2pool/data.py", line 540, in think
19:08:36.753843 if self.attempt_verify(share, now):
19:08:36.753917 --- ---
19:08:36.753997 File "/home/piotrek/Apps/p2pool/p2pool/data.py", line 519, in attempt_verify
19:08:36.754077 share.check(self, now, self.net)
19:08:36.754151 File "/home/piotrek/Apps/p2pool/p2pool/data.py", line 219, in check
19:08:36.754230 raise AssertionError('transitioning...')
19:08:36.754316 exceptions.AssertionError: transitioning...
Restart not help.

Widows: log is broken after error

When error occurs on windows (python and exe) logging to file stops and time stamp is missing form output window.
Upper window is: tail -f log
Lower is output window

When error occurr:
log1

After it back to normal:
log2

This sum up my efficiency, (many "requested work restart")

I just installed p2pool , eveything is set correctly ,

I get constant "New work for worker"
Share 11 peers : 10 (0 incoming)

Is this something related to the network ? Do I need to open up port 9332 ?

I have 35 connection to my bitcoin client.

Cgminer output
[2012-01-30 18:42:41] LONGPOLL requested work restart, waiting on fresh work
[2012-01-30 18:42:44] LONGPOLL requested work restart, waiting on fresh work
[2012-01-30 18:42:49] LONGPOLL requested work restart, waiting on fresh work
[2012-01-30 18:43:03] LONGPOLL requested work restart, waiting on fresh work
[2012-01-30 18:43:20] LONGPOLL requested work restart, waiting on fresh work
[2012-01-30 18:43:21] Accepted 00000000.0a051f39.e4256f38 GPU 0 thread 1
[2012-01-30 18:43:26] LONGPOLL requested work restart, waiting on fresh work
[2012-01-30 18:43:38] LONGPOLL requested work restart, waiting on fresh work
[2012-01-30 18:43:45] LONGPOLL requested work restart, waiting on fresh work
[2012-01-30 18:43:53] LONGPOLL requested work restart, waiting on fresh work
[2012-01-30 18:43:59] LONGPOLL requested work restart, waiting on fresh work
[2012-01-30 18:44:05] LONGPOLL requested work restart, waiting on fresh work

On average I get 5 "requested work restart" for every accepted shares.

TRC donation fail?

On block transaction there is at end:

UNKNOWN: 0.0096326
UNKNOWN: 0

Looks like donation script/address is broken for TRC.

TRC node/s broken?

Current block value: 20.0005 TRC Expected time to block: 0.554 hours
But no block last 24hrs? I not believe in SO bad luck.
Also log is spammed by share errors, shares are send over and over to same peers also my node is asking for same shares over and over. I put some logs on IRC last night.
Also there is no list of block found EVER. I run my node just after TRC was supported and NEVER see anything under
Blocks found in last day:
Something is very broken imo.
I tried to delete and download share chain - not any better.

plz add larger delay on merged mining

 auxblock = yield deferral.retry('Error while calling merged getauxblock:', 1)(merged_proxy.rpc_getauxblock)() 

to

 auxblock = yield deferral.retry('Error while calling merged getauxblock:', 60)(merged_proxy.rpc_getauxblock)() 

It will prevent spamming log when daemons are starting

Excepton on startup

I see this only on startup:

2012-07-02 20:57:56.961451 Loading shares...
2012-07-02 20:57:57.485483 > Error while reading saved shares, continuing where left off:
2012-07-02 20:57:57.485650 > Traceback (most recent call last):
2012-07-02 20:57:57.485718 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 545, in _runCallbacks
2012-07-02 20:57:57.485758 >     current.result = callback(current.result, *args, **kw)
2012-07-02 20:57:57.485814 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1095, in gotResult
2012-07-02 20:57:57.485850 >     _inlineCallbacks(r, g, deferred)
2012-07-02 20:57:57.485883 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1039, in _inlineCallbacks
2012-07-02 20:57:57.485931 >     result = g.send(result)
2012-07-02 20:57:57.485983 >   File "/home/rav3n/p2pool/p2pool/main.py", line 134, in main
2012-07-02 20:57:57.486017 >     for i, (mode, contents) in enumerate(ss.get_shares()):
2012-07-02 20:57:57.486068 > --- <exception caught here> ---
2012-07-02 20:57:57.486119 >   File "/home/rav3n/p2pool/p2pool/data.py", line 555, in get_shares
2012-07-02 20:57:57.486168 >     type_id_str, data_hex = line.strip().split(' ')
2012-07-02 20:57:57.486202 > exceptions.ValueError: too many values to unpack
2012-07-02 20:57:58.655928     1000

Litecoin: global name 'share1a' is not defined

It happens to me with 38a4495:

11:38:04.221220 RECV share1bs {'share1bs': [{'header': {'nonce': 5399, 'target': FloatingInteger(bits=0x1d018fa9 (18fa900000000000
11:38:04.227061 Error handling message: (see RECV line)
11:38:04.227112 Traceback (most recent call last):
11:38:04.227141 File "/usr/lib/python2.7/dist-packages/twisted/python/context.py", line 81, in callWithContext
11:38:04.227167 return func(_args,__kw)
11:38:04.227193 File "/usr/lib/python2.7/dist-packages/twisted/internet/selectreactor.py", line 146, in _doReadOrWrite
11:38:04.227219 why = getattr(selectable, method)()
11:38:04.227244 File "/usr/lib/python2.7/dist-packages/twisted/internet/tcp.py", line 460, in doRead
11:38:04.227268 rval = self.protocol.dataReceived(data)
11:38:04.227293 File "/home/iongchun/Bitcoin/p2pool-LTC/p2pool/util/datachunker.py", line 40, in DataChunker
11:38:04.227318 wants = receiver.send(buf.get(wants))
11:38:04.227343 --- ---
11:38:04.227367 File "/home/iongchun/Bitcoin/p2pool-LTC/p2pool/bitcoin/p2p.py", line 68, in dataReceiver
11:38:04.227401 handler(
*payload2)
11:38:04.227426 File "/home/iongchun/Bitcoin/p2pool-LTC/p2pool/p2p.py", line 230, in handle_share1bs
11:38:04.227450 if not self.node.net.BITCOIN_POW_FUNC(share1a['header']) <= share1b['header']['target']:
11:38:04.227474 exceptions.NameError: global name 'share1a' is not defined

Drop old nodes

Simple change in code make it happen:
/p2pool/p2p.py

 def handle_version(self, version, services, addr_to, addr_from, nonce, sub_version, mode, best_share_hash):
        if self.other_version is not None:
            raise PeerMisbehavingError('more than one version message')
        if version < 4:
            raise PeerMisbehavingError('peer too old')

change to

def handle_version(self, version, services, addr_to, addr_from, nonce, sub_version, mode, best_share_hash):
        if self.other_version is not None:
            raise PeerMisbehavingError('more than one version message')
        if version < 8:
            raise PeerMisbehavingError('peer too old')

:)

LTC share diff on page wrong?

On site:

Pool rate: 42.0MH/s (10% DOA+orphan) Share difficulty: 0.0942

in miner:

Best share: 826

but no share counted.

It should be *1000 on site or what?

Expected mining value is calcualted wrong

From my node:

Version: 11.0-2-g0981bdf
Pool rate: 72.8MH/s (0.0% DOA+orphan) Share difficulty: 1.00
Node uptime: 1.146 days Peers: 0 out, 4 in
Local rate: 150MH/s (0.0% DOA) Expected time to share: 0.00794 hours
Shares: 318 total (0 orphaned, 1 dead) Efficiency: 99.69%
Payout if a block were found NOW: 1.56014559 TRC to 12iaCnD1HF14BPBDu4mzi9vKcVv2xBP6sR. 
Expected after mining for 24 hours: 40.9 TRC per block.
Current block value: 20 TRC Expected time to block: 18.9 hours

Expected>block value :)

Limit max bandwidtch

I wish there was a way to limit network usage by limiting network speed.
About every 10 there is huge spike that choke my connection (probably it is block found transfer over p2pool peers). When I play any on-line game I experience few second of killer lag, sometimes even disconnection.
something like:
--max-bandwidth=50kb
I have unlimited data transfer, but bandwidth is cut hard at some level :)

Requirements need be updated

"Requirements:
Generic:
Bitcoin >=0.6.0rc4 or Bitcoin >=0.5.4 (for BIP16 support) "

It is now 0.6.4 or higher.

"Share check failed:"

Version: 10.0-6-g2dffea0
Using cgminer 2.10.4 in stratum mode
All my shares are orphaned, forum post lead me to found that:


2013-01-01 07:09:30.104847 New work for worker! Difficulty: 0.999985 Share difficulty: 768.435174 Total block value: 25.168100 BTC including 213 transactions
2013-01-01 07:09:30.132810 New work for worker! Difficulty: 0.999985 Share difficulty: 768.435174 Total block value: 25.168100 BTC including 213 transactions
2013-01-01 07:09:31.986272 P2Pool: 17336 shares in chain (10573 verified/17340 total) Peers: 12 (9 incoming)
2013-01-01 07:09:31.986459  Local: 293MH/s in last 10.0 minutes Local dead on arrival: ~0.0% (0-9%) Expected time to share: 3.1 hours
2013-01-01 07:09:31.986538  Shares: 0 (0 orphan, 0 dead) Stale rate: ??? Efficiency: ??? Current payout: 0.0000 BTC
2013-01-01 07:09:31.986599  Pool: 362GH/s Stale rate: 10.7% Expected time to block: 9.8 hours
2013-01-01 07:09:36.034509 GOT SHARE! toy.gpu 0236b662 prev 546631d3 age 5.94s
2013-01-01 07:09:36.081602 > Share check failed:
2013-01-01 07:09:36.081707 > Traceback (most recent call last):
2013-01-01 07:09:36.081739 >   File "/home/rav3n/p2pool/p2pool/bitcoin/worker_interface.py", line 128, in <lambda>
2013-01-01 07:09:36.081768 >     lambda header, user, coinbase_nonce: handler(header, user, pack.IntType(self._my_bits).pack(nonce) + coinbase_nonce),
2013-01-01 07:09:36.081798 >   File "/home/rav3n/p2pool/p2pool/work.py", line 348, in got_response
2013-01-01 07:09:36.081826 >     self.node.set_best_share()
2013-01-01 07:09:36.081853 >   File "/home/rav3n/p2pool/p2pool/node.py", line 288, in set_best_share
2013-01-01 07:09:36.081880 >     best, desired, decorated_heads = self.tracker.think(self.get_height_rel_highest, self.bitcoind_work.value['previous_block'], self.bitcoind_work.value['bits'], self.known_txs_var.value)
2013-01-01 07:09:36.081912 >   File "/home/rav3n/p2pool/p2pool/data.py", line 445, in think
2013-01-01 07:09:36.081938 >     if self.attempt_verify(share):
2013-01-01 07:09:36.081962 > --- <exception caught here> ---
2013-01-01 07:09:36.081986 >   File "/home/rav3n/p2pool/p2pool/data.py", line 424, in attempt_verify
2013-01-01 07:09:36.082047 >     share.check(self)
2013-01-01 07:09:36.082080 >   File "/home/rav3n/p2pool/p2pool/data.py", line 314, in check
2013-01-01 07:09:36.082106 >     raise ValueError('''gentx doesn't match hash_link''')
2013-01-01 07:09:36.082149 > exceptions.ValueError: gentx doesn't match hash_link
2013-01-01 07:09:36.287567 Merged block submittal result: True
2013-01-01 07:09:36.292540 Got new merged mining work!
2013-01-01 07:09:36.324950 New work for worker! Difficulty: 0.999985 Share difficulty: 768.435174 Total block value: 25.168100 BTC including 213 transactions
2013-01-01 07:09:36.354607 New work for worker! Difficulty: 0.999985 Share difficulty: 768.435174 Total block value: 25.168100 BTC including 213 transactions
2013-01-01 07:09:37.994664 P2Pool: 17336 shares in chain (10573 verified/17340 total) Peers: 12 (9 incoming)
2013-01-01 07:09:37.994860  Local: 300MH/s in last 10.0 minutes Local dead on arrival: ~0.0% (0-9%) Expected time to share: 3.1 hours
2013-01-01 07:09:37.994938  Shares: 1 (1 orphan, 0 dead) Stale rate: ~100.0% (20-100%) Efficiency: ~0.0% (0-89%) Current payout: 0.0000 BTC
2013-01-01 07:09:37.995036  Pool: 362GH/s Stale rate: 10.7% Expected time to block: 9.8 hours

Failure: twisted.internet.defer.TimeoutError: in ReplyMatcher

Getting this error almost every hour, sometimes more often:

2012-06-16 12:54:41.902000 > Unhandled error in Deferred:
2012-06-16 12:54:41.902000 > Unhandled Error
2012-06-16 12:54:41.902000 > Traceback (most recent call last):
2012-06-16 12:54:41.903000 > Failure: twisted.internet.defer.TimeoutError: in ReplyMatcher

Not see any problems, node is working properly. Just wondering wgo?

Add option so that p2pool can LISTEN for workers on a specific interface

--- p2pool.prev/main.py 2012-01-31 23:03:33.000000000 -0800
+++ p2pool.new/main.py 2012-02-09 23:14:11.455102983 -0800
@@ -369,7 +369,7 @@ def main(args, net, datadir_path):

     # start listening for workers with a JSON-RPC server
  •    print 'Listening for workers on port %i...' % (args.worker_port,)
    
  •    print 'Listening for workers on port %i... and host %s' % (args.worker_port,args.worker_host)
    
     if os.path.exists(os.path.join(datadir_path, 'vip_pass')):
         with open(os.path.join(datadir_path, 'vip_pass'), 'rb') as f:
    

    @@ -736,7 +736,7 @@ def main(args, net, datadir_path):

     def attempt_listen():
         try:
    
  •            reactor.listenTCP(args.worker_port, server.Site(web_root))
    
  •            reactor.listenTCP(args.worker_port, server.Site(web_root), interface=args.worker_host)
         except error.CannotListenError, e:
             print >>sys.stderr, 'Error binding to worker port: %s. Retrying in 1 second.' % (e.socketError,)
             reactor.callLater(1, attempt_listen)
    

    @@ -925,10 +925,14 @@ def run():
    worker_group.add_argument('-w', '--worker-port', metavar='PORT',
    help='listen on PORT for RPC connections from miners (default: %s)' % ', '.join('%s:%i' % (n.NAME, n.WORKER_PORT) for _, n in sorted(networks.realnets.items())),
    type=int, action='store', default=None, dest='worker_port')

  • worker_group.add_argument('-host', '--worker-host', metavar='HOST',

  •                          help='listen on HOST for RPC connections from miners (default: 0.0.0.0)',
    
  •                          type=str, action='store', default='0.0.0.0', dest='worker_host') 
    

    worker_group.add_argument('-f', '--fee', metavar='FEE_PERCENTAGE',
    help='''charge workers mining to their own bitcoin address (by setting their miner's username to a bitcoin address) this percentage fee to mine on your p2pool instance. Amount displayed at http://127.0.0.1:WORKER_PORT/fee (default: 0)''',
    type=float, action='store', default=0, dest='worker_fee')

  • bitcoind_group = parser.add_argument_group('bitcoind interface')
    bitcoind_group.add_argument('--bitcoind-address', metavar='BITCOIND_ADDRESS',
    help='connect to this address (default: 127.0.0.1)',

Q: Count real share power instead of minimum needed?

I looked into block shares and it looks like even them are counted like "standard" minimum shares.
It would be better to calculate "real" value of each share? Can we do some calculation based on current chain to see how payout per miner would be changed?

AssertionError

2012-12-31 15:39:38.709349 > Unhandled Error
2012-12-31 15:39:38.709414 > Traceback (most recent call last):
2012-12-31 15:39:38.709455 > File "./run_p2pool.py", line 5, in
2012-12-31 15:39:38.709484 > main.run()
2012-12-31 15:39:38.709513 > File "/home/forrest/repos/p2pool/p2pool/main.py", line 569, in run
2012-12-31 15:39:38.709541 > reactor.run()
2012-12-31 15:39:38.709569 > File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 1169, in run
2012-12-31 15:39:38.709597 > self.mainLoop()
2012-12-31 15:39:38.709635 > File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 1178, in mainLoop
2012-12-31 15:39:38.709664 > self.runUntilCurrent()
2012-12-31 15:39:38.709693 > --- ---
2012-12-31 15:39:38.709721 > File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 800, in runUntilCurrent
2012-12-31 15:39:38.709762 > call.func(_call.args, *_call.kw)
2012-12-31 15:39:38.709790 > File "/home/forrest/repos/p2pool/p2pool/bitcoin/stratum.py", line 35, in _send_work
2012-12-31 15:39:38.709822 > x, got_response = self.wb.get_work(*self.wb.get_user_details(self.username)[1:])
2012-12-31 15:39:38.709850 > File "/home/forrest/repos/p2pool/p2pool/work.py", line 235, in get_work
2012-12-31 15:39:38.709878 > base_subsidy=self.node.net.PARENT.SUBSIDY_FUNC(self.current_work.value['height']),
2012-12-31 15:39:38.709906 > File "/home/forrest/repos/p2pool/p2pool/data.py", line 113, in generate_transaction
2012-12-31 15:39:38.709933 > assert height >= net.REAL_CHAIN_LENGTH or last is None
2012-12-31 15:39:38.709962 > exceptions.AssertionError:

"New work for worker!" always 3 times in split of second

grep from log

2012-12-31 19:31:53.299431 New work for worker! Difficulty: 0.999985 Share difficulty: 672.779692 Total block value: 25.477100 BTC including 597 transactions
2012-12-31 19:31:53.392390 New work for worker! Difficulty: 0.999985 Share difficulty: 672.779692 Total block value: 25.477100 BTC including 597 transactions
2012-12-31 19:31:53.465041 New work for worker! Difficulty: 0.999985 Share difficulty: 672.779692 Total block value: 25.477100 BTC including 597 transactions
2012-12-31 19:32:14.596992 New work for worker! Difficulty: 0.999985 Share difficulty: 670.522286 Total block value: 25.478400 BTC including 598 transactions
2012-12-31 19:32:14.690185 New work for worker! Difficulty: 0.999985 Share difficulty: 670.522286 Total block value: 25.478400 BTC including 598 transactions
2012-12-31 19:32:14.785074 New work for worker! Difficulty: 0.999985 Share difficulty: 670.522286 Total block value: 25.478400 BTC including 598 transactions
2012-12-31 19:32:18.659864 New work for worker! Difficulty: 0.999985 Share difficulty: 673.388755 Total block value: 25.478700 BTC including 601 transactions
2012-12-31 19:32:18.751342 New work for worker! Difficulty: 0.999985 Share difficulty: 673.388755 Total block value: 25.478700 BTC including 601 transactions
2012-12-31 19:32:18.848335 New work for worker! Difficulty: 0.999985 Share difficulty: 673.388755 Total block value: 25.478700 BTC including 601 transactions
2012-12-31 19:32:19.753855 New work for worker! Difficulty: 0.999985 Share difficulty: 670.469007 Total block value: 25.478700 BTC including 601 transactions
2012-12-31 19:32:19.840632 New work for worker! Difficulty: 0.999985 Share difficulty: 670.469007 Total block value: 25.478700 BTC including 601 transactions
2012-12-31 19:32:19.858372 New work for worker! Difficulty: 0.999985 Share difficulty: 670.469007 Total block value: 25.000000 BTC including 0 transactions
2012-12-31 19:32:19.925360 New work for worker! Difficulty: 0.999985 Share difficulty: 670.469007 Total block value: 25.000000 BTC including 0 transactions
2012-12-31 19:32:20.185002 New work for worker! Difficulty: 0.999985 Share difficulty: 670.469007 Total block value: 25.000000 BTC including 0 transactions
2012-12-31 19:32:20.334301 New work for worker! Difficulty: 0.999985 Share difficulty: 673.388755 Total block value: 25.000000 BTC including 0 transactions
2012-12-31 19:32:20.458070 New work for worker! Difficulty: 0.999985 Share difficulty: 673.388755 Total block value: 25.479700 BTC including 568 transactions
2012-12-31 19:32:20.547158 New work for worker! Difficulty: 0.999985 Share difficulty: 673.388755 Total block value: 25.479700 BTC including 568 transactions
2012-12-31 19:32:21.790153 New work for worker! Difficulty: 0.999985 Share difficulty: 673.388755 Total block value: 25.479700 BTC including 568 transactions
2012-12-31 19:32:31.413581 New work for worker! Difficulty: 0.999985 Share difficulty: 673.388755 Total block value: 25.479700 BTC including 568 transactions
2012-12-31 19:32:31.486648 New work for worker! Difficulty: 0.999985 Share difficulty: 673.388755 Total block value: 25.479700 BTC including 568 transactions
2012-12-31 19:32:31.573230 New work for worker! Difficulty: 0.999985 Share difficulty: 673.388755 Total block value: 25.479700 BTC including 568 transactions
2012-12-31 19:32:43.078779 New work for worker! Difficulty: 0.999985 Share difficulty: 669.508820 Total block value: 25.479700 BTC including 569 transactions
2012-12-31 19:32:43.178165 New work for worker! Difficulty: 0.999985 Share difficulty: 669.508820 Total block value: 25.479700 BTC including 569 transactions
2012-12-31 19:32:43.253315 New work for worker! Difficulty: 0.999985 Share difficulty: 669.508820 Total block value: 25.479700 BTC including 569 transactions
2012-12-31 19:32:44.620479 New work for worker! Difficulty: 0.999985 Share difficulty: 669.450485 Total block value: 25.479700 BTC including 569 transactions
2012-12-31 19:32:44.695821 New work for worker! Difficulty: 0.999985 Share difficulty: 669.450485 Total block value: 25.479700 BTC including 569 transactions
2012-12-31 19:32:44.781137 New work for worker! Difficulty: 0.999985 Share difficulty: 669.450485 Total block value: 25.479700 BTC including 569 transactions
2012-12-31 19:32:48.191551 New work for worker! Difficulty: 0.999985 Share difficulty: 669.407287 Total block value: 25.479700 BTC including 569 transactions
2012-12-31 19:32:48.344998 New work for worker! Difficulty: 0.999985 Share difficulty: 669.407287 Total block value: 25.479700 BTC including 569 transactions
2012-12-31 19:32:48.431529 New work for worker! Difficulty: 0.999985 Share difficulty: 669.407287 Total block value: 25.479700 BTC including 569 transactions
2012-12-31 19:32:57.927177 New work for worker! Difficulty: 0.999985 Share difficulty: 666.185683 Total block value: 25.479700 BTC including 569 transactions
2012-12-31 19:32:58.014399 New work for worker! Difficulty: 0.999985 Share difficulty: 666.185683 Total block value: 25.479700 BTC including 569 transactions
2012-12-31 19:32:58.116532 New work for worker! Difficulty: 0.999985 Share difficulty: 666.185683 Total block value: 25.479700 BTC including 569 transactions
2012-12-31 19:33:16.330788 New work for worker! Difficulty: 0.999985 Share difficulty: 666.185683 Total block value: 25.480300 BTC including 571 transactions
2012-12-31 19:33:16.466595 New work for worker! Difficulty: 0.999985 Share difficulty: 666.185683 Total block value: 25.480300 BTC including 571 transactions
2012-12-31 19:33:16.536949 New work for worker! Difficulty: 0.999985 Share difficulty: 666.185683 Total block value: 25.480300 BTC including 571 transactions
2012-12-31 19:33:19.069356 New work for worker! Difficulty: 0.999985 Share difficulty: 666.745492 Total block value: 25.480300 BTC including 571 transactions
2012-12-31 19:33:19.168003 New work for worker! Difficulty: 0.999985 Share difficulty: 666.745492 Total block value: 25.480300 BTC including 571 transactions
2012-12-31 19:33:19.259382 New work for worker! Difficulty: 0.999985 Share difficulty: 666.745492 Total block value: 25.480300 BTC including 571 transactions

Scale share diff depends on miner hash speed

To allow smaller miners to mine in pool when it grows share diff should be scaled depends on current pool ratio and miner ratio. Bigger (faster) miner = higher than nominal share diff.

"Failure: twisted.internet.defer.TimeoutError: in GenericDeferrer"

After restart log is spammed every few sec:

in download_shares:
Traceback (most recent call last):
Failure: twisted.internet.defer.TimeoutError: in GenericDeferrer

No more information about location of exception, ie:

2012-11-19 00:10:34.765626 P2Pool: 18396 shares in chain (18400 verified/18461 total) Peers: 10 (0 incoming)
2012-11-19 00:10:34.765921  Local: 139MH/s in last 8.2 minutes Local dead on arrival: ~0.0% (0-20%) Expected time to share: 5.9 hours
2012-11-19 00:10:34.766067  Shares: 0 (0 orphan, 0 dead) Stale rate: ??? Efficiency: ??? Current payout: 0.0000 BTC
2012-11-19 00:10:34.766394  Pool: 368GH/s Stale rate: 10.2% Expected time to block: 10.9 hours
2012-11-19 00:10:36.732483 > in download_shares:
2012-11-19 00:10:36.732625 > Traceback (most recent call last):
2012-11-19 00:10:36.732660 > Failure: twisted.internet.defer.TimeoutError: in GenericDeferrer
2012-11-19 00:10:36.732871 Requesting parent share 3340d895 from 75.12.89.18:9333
2012-11-19 00:10:36.733982 Lost peer 67.223.128.37:9333 - Connection was closed cleanly.
2012-11-19 00:10:37.774328 P2Pool: 18396 shares in chain (18400 verified/18461 total) Peers: 9 (0 incoming)

Skipping from block... always at least 2 times in log

It is intended or kind of bug?
Message is always 2 times, about 3-5 seconds between. Sometimes it repeats even more times.

2012-06-14 22:12:20.838000 Skipping from block a11de066ca884eb0e1cc6023d12b97c667db68d94e462b78b0 to block 231a732fb2bd4cbc560ae338fd3c1836ea54fade309bcbf8404!
2012-06-14 22:12:20.844000 New work for worker! Difficulty: 0.999985 Share difficulty: 607.649823 Total block value: 50.000000 BTC including 0 transactions
2012-06-14 22:12:21.459000 P2Pool: 18299 shares in chain (18303 verified/18303 total) Peers: 14 (3 incoming)
2012-06-14 22:12:21.460000  Local: 157MH/s in last 10.0 minutes Local dead on arrival: ~0.0% (0-15%) Expected time to share: 4.6 hours
2012-06-14 22:12:21.460000  Shares: 0 (0 orphan, 0 dead) Stale rate: ??? Efficiency: ??? Current payout: 0.0226 BTC
2012-06-14 22:12:21.460000  Pool: 261GH/s Stale rate: 9.8% Expected time to block: 7.2 hours
2012-06-14 22:12:23.043000 Skipping from block a11de066ca884eb0e1cc6023d12b97c667db68d94e462b78b0 to block 231a732fb2bd4cbc560ae338fd3c1836ea54fade309bcbf8404!
2012-06-14 22:12:27.485000 P2Pool: 18299 shares in chain (18303 verified/18303 total) Peers: 14 (3 incoming)
2012-06-14 22:12:27.485000  Local: 150MH/s in last 10.0 minutes Local dead on arrival: ~0.0% (0-16%) Expected time to share: 4.8 hours
2012-06-14 22:12:27.485000  Shares: 0 (0 orphan, 0 dead) Stale rate: ??? Efficiency: ??? Current payout: 0.0226 BTC
2012-06-14 22:12:27.485000  Pool: 261GH/s Stale rate: 9.8% Expected time to block: 7.2 hours
2012-06-14 22:12:28.031000 > Unhandled error in Deferred:
2012-06-14 22:12:28.031000 > Unhandled Error
2012-06-14 22:12:28.031000 > Traceback (most recent call last):
2012-06-14 22:12:28.031000 > Failure: twisted.internet.defer.TimeoutError: in ReplyMatcher
2012-06-14 22:12:30.497000 P2Pool: 18299 shares in chain (18303 verified/18303 total) Peers: 14 (3 incoming)
2012-06-14 22:12:30.497000  Local: 143MH/s in last 10.0 minutes Local dead on arrival: ~0.0% (0-17%) Expected time to share: 5.0 hours
2012-06-14 22:12:30.497000  Shares: 0 (0 orphan, 0 dead) Stale rate: ??? Efficiency: ??? Current payout: 0.0226 BTC
2012-06-14 22:12:30.497000  Pool: 261GH/s Stale rate: 9.8% Expected time to block: 7.2 hours
2012-06-14 22:12:31.085000 Skipping from block a11de066ca884eb0e1cc6023d12b97c667db68d94e462b78b0 to block 231a732fb2bd4cbc560ae338fd3c1836ea54fade309bcbf8404!
2012-06-14 22:12:33.509000 P2Pool: 18299 shares in chain (18304 verified/18304 total) Peers: 14 (3 incoming)
2012-06-14 22:12:33.510000  Local: 143MH/s in last 10.0 minutes Local dead on arrival: ~0.0% (0-17%) Expected time to share: 5.0 hours
2012-06-14 22:12:33.510000  Shares: 0 (0 orphan, 0 dead) Stale rate: ??? Efficiency: ??? Current payout: 0.0226 BTC
2012-06-14 22:12:33.510000  Pool: 261GH/s Stale rate: 9.8% Expected time to block: 7.2 hours
2012-06-14 22:12:35.948000 Skipping from block a11de066ca884eb0e1cc6023d12b97c667db68d94e462b78b0 to block 231a732fb2bd4cbc560ae338fd3c1836ea54fade309bcbf8404!
2012-06-14 22:31:07.853000 Skipping from block 231a732fb2bd4cbc560ae338fd3c1836ea54fade309bcbf8404 to block 27e7e108bd91b9de2daaa2f9a196fe54bdf32b9de4a6aaf0288!
2012-06-14 22:31:07.858000 New work for worker! Difficulty: 0.999985 Share difficulty: 605.429759 Total block value: 50.000000 BTC including 0 transactions
2012-06-14 22:31:08.577000 P2Pool: 18005 shares in chain (18009 verified/18009 total) Peers: 14 (3 incoming)
2012-06-14 22:31:08.577000  Local: 207MH/s in last 10.0 minutes Local dead on arrival: ~0.0% (0-12%) Expected time to share: 3.5 hours
2012-06-14 22:31:08.578000  Shares: 0 (0 orphan, 0 dead) Stale rate: ??? Efficiency: ??? Current payout: 0.0225 BTC
2012-06-14 22:31:08.578000  Pool: 274GH/s Stale rate: 9.8% Expected time to block: 6.9 hours
2012-06-14 22:31:14.410000 Skipping from block 231a732fb2bd4cbc560ae338fd3c1836ea54fade309bcbf8404 to block 27e7e108bd91b9de2daaa2f9a196fe54bdf32b9de4a6aaf0288!
2012-06-14 22:31:17.608000 P2Pool: 18005 shares in chain (18009 verified/18009 total) Peers: 14 (3 incoming)

https rpc possibility

this is easily done by letting one pass the entire url including the https:// as argument instead of host and port.

I tried it by modifying the sprintf in main.py .

AttributeError: 'ZipPath' object has no attribute 'getByteStream'

Something like this is popping in my log few times per day:

2012-06-20 21:49:32.303000  Pool: 223GH/s Stale rate: 6.7% Expected time to block: 9.2 hours
2012-06-20 21:49:47.337000 > Unhandled Error
2012-06-20 21:49:47.338000 > Traceback (most recent call last):
2012-06-20 21:49:47.339000 >   File "twisted\protocols\basic.pyc", line 564, in dataReceived
2012-06-20 21:49:47.340000 >     
2012-06-20 21:49:47.341000 >   File "twisted\web\http.pyc", line 1551, in lineReceived
2012-06-20 21:49:47.341000 >     
2012-06-20 21:49:47.342000 >   File "twisted\web\http.pyc", line 1618, in allContentReceived
2012-06-20 21:49:47.343000 >     
2012-06-20 21:49:47.344000 >   File "twisted\web\http.pyc", line 773, in requestReceived
2012-06-20 21:49:47.344000 >     
2012-06-20 21:49:47.345000 > --- <exception caught here> ---
2012-06-20 21:49:47.345000 >   File "twisted\web\server.pyc", line 156, in process
2012-06-20 21:49:47.346000 >     
2012-06-20 21:49:47.346000 >   File "twisted\web\server.pyc", line 191, in render
2012-06-20 21:49:47.348000 >     
2012-06-20 21:49:47.348000 >   File "twisted\web\resource.pyc", line 216, in render
2012-06-20 21:49:47.349000 >     
2012-06-20 21:49:47.349000 >   File "p2pool\web.pyc", line 190, in render_GET
2012-06-20 21:49:47.350000 >     
2012-06-20 21:49:47.350000 >   File "p2pool\web.pyc", line 399, in <lambda>
2012-06-20 21:49:47.351000 >     
2012-06-20 21:49:47.352000 > exceptions.KeyError: 'last_'
2012-06-20 21:49:47.353000 > Unhandled Error
2012-06-20 21:49:47.353000 > Traceback (most recent call last):
2012-06-20 21:49:47.354000 >   File "twisted\web\server.pyc", line 271, in processingFailed
2012-06-20 21:49:47.355000 >     
2012-06-20 21:49:47.355000 >   File "twisted\web\util.pyc", line 418, in formatFailure
2012-06-20 21:49:47.356000 >     
2012-06-20 21:49:47.356000 >   File "twisted\web\_flatten.pyc", line 312, in flattenString
2012-06-20 21:49:47.357000 >     
2012-06-20 21:49:47.357000 >   File "twisted\web\_flatten.pyc", line 295, in flatten
2012-06-20 21:49:47.358000 >     
2012-06-20 21:49:47.359000 > --- <exception caught here> ---
2012-06-20 21:49:47.360000 >   File "twisted\web\_flatten.pyc", line 254, in _writeFlattenedData
2012-06-20 21:49:47.360000 >     
2012-06-20 21:49:47.361000 >   File "twisted\web\_flatten.pyc", line 221, in _flattenTree
2012-06-20 21:49:47.361000 >     
2012-06-20 21:49:47.362000 > twisted.web.error.FlattenerError: Exception while flattening:
2012-06-20 21:49:47.363000 >   <twisted.web.util.FailureElement object at 0x08D6C6D0>
2012-06-20 21:49:47.363000 >   File "twisted\web\_flatten.pyc", line 212, in _flattenTree
2012-06-20 21:49:47.364000 >   File "twisted\web\_flatten.pyc", line 183, in _flattenElement
2012-06-20 21:49:47.364000 >   File "twisted\web\_element.pyc", line 184, in render
2012-06-20 21:49:47.365000 >   File "twisted\web\template.pyc", line 465, in load
2012-06-20 21:49:47.366000 >   File "twisted\web\template.pyc", line 444, in _loadDoc
2012-06-20 21:49:47.366000 >   File "twisted\web\template.pyc", line 351, in _flatsaxParse
2012-06-20 21:49:47.367000 >   File "xml\sax\expatreader.pyc", line 102, in parse
2012-06-20 21:49:47.367000 >   File "xml\sax\saxutils.pyc", line 295, in prepare_input_source
2012-06-20 21:49:47.368000 > AttributeError: 'ZipPath' object has no attribute 'getByteStream'
2012-06-20 21:49:47.368000 > 
2012-06-20 21:49:47.381000 P2Pool: 17563 shares in chain (17567 verified/17567 total) Peers: 15 (5 incoming) 

Error

I got this today, I do not know if this a serious error. I can't write on bitcointalk.org so I wrote this here.
I'm sorry if I lost Your time

2012-01-18 18:45:48.754860 GOT BLOCK FROM PEER! Passing to bitcoind! f1756f20 bitcoin: a52672b34d7336ca9040b7f83a5f3a5178a727afdbb991fd227
2012-01-18 18:45:48.754933
2012-01-18 18:46:05.527916 Requesting parent share 4f861850 from 74.220.242.6:9334
2012-01-18 18:46:05.528618 ... done processing 676 shares. New: 676 Have: 26493/~17280
2012-01-18 18:46:05.529253 > Watchdog timer went off at:
2012-01-18 18:46:05.529311 > File "run_p2pool.py", line 5, in
2012-01-18 18:46:05.529343 > main.run()
2012-01-18 18:46:05.529372 > File "/home/koparka1/p2pool/p2pool/main.py", line 1043, in run
2012-01-18 18:46:05.529400 > reactor.run()
2012-01-18 18:46:05.529428 > File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 1162, in run
2012-01-18 18:46:05.529457 > self.mainLoop()
2012-01-18 18:46:05.529485 > File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 1174, in mainLoop
2012-01-18 18:46:05.529528 > self.doIteration(t)
2012-01-18 18:46:05.529556 > File "/usr/lib/python2.7/dist-packages/twisted/internet/selectreactor.py", line 140, in doSelect
2012-01-18 18:46:05.529585 > _logrun(selectable, _drdw, selectable, method, dict)
2012-01-18 18:46:05.529613 > File "/usr/lib/python2.7/dist-packages/twisted/python/log.py", line 84, in callWithLogger
2012-01-18 18:46:05.529643 > return callWithContext({"system": lp}, func, _args, *_kw)
2012-01-18 18:46:05.529671 > File "/usr/lib/python2.7/dist-packages/twisted/python/log.py", line 69, in callWithContext
2012-01-18 18:46:05.529700 > return context.call({ILogContext: newCtx}, func, _args, *_kw)
2012-01-18 18:46:05.529729 > File "/usr/lib/python2.7/dist-packages/twisted/python/context.py", line 118, in callWithContext
2012-01-18 18:46:05.529758 > return self.currentContext().callWithContext(ctx, func, _args, *_kw)
2012-01-18 18:46:05.529786 > File "/usr/lib/python2.7/dist-packages/twisted/python/context.py", line 81, in callWithContext
2012-01-18 18:46:05.529815 > return func(_args,__kw)
2012-01-18 18:46:05.529842 > File "/usr/lib/python2.7/dist-packages/twisted/internet/selectreactor.py", line 146, in _doReadOrWrite
2012-01-18 18:46:05.529872 > why = getattr(selectable, method)()
2012-01-18 18:46:05.529900 > File "/usr/lib/python2.7/dist-packages/twisted/internet/tcp.py", line 460, in doRead
2012-01-18 18:46:05.529928 > rval = self.protocol.dataReceived(data)
2012-01-18 18:46:05.529956 > File "/home/koparka1/p2pool/p2pool/util/datachunker.py", line 40, in DataChunker
2012-01-18 18:46:05.529985 > wants = receiver.send(buf.get(wants))
2012-01-18 18:46:05.530013 > File "/home/koparka1/p2pool/p2pool/bitcoin/p2p.py", line 64, in dataReceiver
2012-01-18 18:46:05.530042 > self.packetReceived(command, payload2)
2012-01-18 18:46:05.530070 > File "/home/koparka1/p2pool/p2pool/p2p.py", line 74, in packetReceived
2012-01-18 18:46:05.530098 > bitcoin_p2p.BaseProtocol.packetReceived(self, command, payload2)
2012-01-18 18:46:05.530126 > File "/home/koparka1/p2pool/p2pool/bitcoin/p2p.py", line 74, in packetReceived
2012-01-18 18:46:05.530154 > handler(
*payload2)
2012-01-18 18:46:05.530182 > File "/home/koparka1/p2pool/p2pool/p2p.py", line 206, in handle_shares
2012-01-18 18:46:05.530209 > self.node.handle_shares(res, self)
2012-01-18 18:46:05.530237 > File "/home/koparka1/p2pool/p2pool/main.py", line 248, in handle_shares
2012-01-18 18:46:05.530265 > set_real_work2()
2012-01-18 18:46:05.530293 > File "/home/koparka1/p2pool/p2pool/main.py", line 160, in set_real_work2
2012-01-18 18:46:05.530320 > best, desired = tracker.think(ht, pre_current_work.value['previous_block'])
2012-01-18 18:46:05.530349 > File "/home/koparka1/p2pool/p2pool/data.py", line 329, in think
2012-01-18 18:46:05.530377 > if not self.attempt_verify(share):
2012-01-18 18:46:05.530405 > File "/home/koparka1/p2pool/p2pool/data.py", line 284, in attempt_verify
2012-01-18 18:46:05.530447 > share.check(self)
2012-01-18 18:46:05.530474 > File "/home/koparka1/p2pool/p2pool/data.py", line 145, in check
2012-01-18 18:46:05.530502 > if bitcoin_data.check_merkle_branch(bitcoin_data.tx_type.hash256(gentx), 0, self.merkle_branch) != self.header['merkle_root']:
2012-01-18 18:46:05.530532 > File "/home/koparka1/p2pool/p2pool/bitcoin/data.py", line 121, in hash256
2012-01-18 18:46:05.530559 > return HashType().unpack(hashlib.sha256(hashlib.sha256(self.pack(obj)).digest()).digest())
2012-01-18 18:46:05.530588 > File "/home/koparka1/p2pool/p2pool/bitcoin/data.py", line 107, in pack
2012-01-18 18:46:05.530615 > return self.pack2(slush.immutify(obj))
2012-01-18 18:46:05.530642 > File "/home/koparka1/p2pool/p2pool/util/memoize.py", line 6, in b
2012-01-18 18:46:05.530670 > res = backing.get((f, args), _nothing)
2012-01-18 18:46:05.530697 > File "/home/koparka1/p2pool/p2pool/util/expiring_dict.py", line 159, in get
2012-01-18 18:46:05.530725 > if key in self.d:
2012-01-18 18:46:05.530752 > File "/home/koparka1/p2pool/p2pool/util/slush.py", line 7, in hash
2012-01-18 18:46:05.530780 > rval = self._hash = hash(frozenset(self.iteritems()))
2012-01-18 18:46:05.530807 > File "/home/koparka1/p2pool/p2pool/util/slush.py", line 16, in hash
2012-01-18 18:46:05.530836 > rval = self._hash = hash(tuple(self))
2012-01-18 18:46:05.530863 > File "/home/koparka1/p2pool/p2pool/util/slush.py", line 4, in hash
2012-01-18 18:46:05.530890 > def hash(self):
2012-01-18 18:46:05.530917 > File "/home/koparka1/p2pool/p2pool/main.py", line 748, in
2012-01-18 18:46:05.530944 > sys.stderr.write, 'Watchdog timer went off at:\n' + ''.join(traceback.format_stack())
2012-01-18 18:46:06.404834 Pool: 104GH/s in 26489 shares (26493/26493 verified) Recent: 0.00% >0H/s Shares: 0 (0 orphan, 0 dead) Peers: 4 (1 incoming)

strange Error message must be a unicode

Sorry that I write here again but I can not at bitcointalk.org.
For several days p2pool not working properly, i get this error:
2012-03-11 09:11:38.859514 > Error getting work from bitcoind:
2012-03-11 09:11:38.859691 > Traceback (most recent call last):
2012-03-11 09:11:38.859784 > File "/usr/local/lib/python2.7/site-packages/twisted/internet/defer.py", line 545, in _runCallbacks
2012-03-11 09:11:38.859877 > current.result = callback(current.result, _args, *_kw)
2012-03-11 09:11:38.860139 > File "/usr/local/lib/python2.7/site-packages/twisted/internet/defer.py", line 1095, in gotResult
2012-03-11 09:11:38.860237 > _inlineCallbacks(r, g, deferred)
2012-03-11 09:11:38.860324 > File "/usr/local/lib/python2.7/site-packages/twisted/internet/defer.py", line 1037, in _inlineCallbacks
2012-03-11 09:11:38.860415 > result = result.throwExceptionIntoGenerator(g)
2012-03-11 09:11:38.860500 > File "/usr/local/lib/python2.7/site-packages/twisted/python/failure.py", line 382, in throwExceptionIntoGenerator
2012-03-11 09:11:38.860589 > return g.throw(self.type, self.value, self.tb)
2012-03-11 09:11:38.860672 > --- ---
2012-03-11 09:11:38.860783 > File "/home/piotrek/btc/p2pool/p2pool/util/deferral.py", line 30, in f
2012-03-11 09:11:38.860868 > result = yield func(_args, *_kwargs)
2012-03-11 09:11:38.860992 > File "/usr/local/lib/python2.7/site-packages/twisted/internet/defer.py", line 1037, in _inlineCallbacks
2012-03-11 09:11:38.861088 > result = result.throwExceptionIntoGenerator(g)
2012-03-11 09:11:38.861173 > File "/usr/local/lib/python2.7/site-packages/twisted/python/failure.py", line 382, in throwExceptionIntoGenerator
2012-03-11 09:11:38.861262 > return g.throw(self.type, self.value, self.tb)
2012-03-11 09:11:38.861346 > File "/home/piotrek/btc/p2pool/p2pool/main.py", line 30, in getwork
2012-03-11 09:11:38.861432 > work = yield bitcoind.rpc_getmemorypool()
2012-03-11 09:11:38.861516 > File "/usr/local/lib/python2.7/site-packages/twisted/internet/defer.py", line 1037, in _inlineCallbacks
2012-03-11 09:11:38.861603 > result = result.throwExceptionIntoGenerator(g)
2012-03-11 09:11:38.861686 > File "/usr/local/lib/python2.7/site-packages/twisted/python/failure.py", line 382, in throwExceptionIntoGenerator
2012-03-11 09:11:38.861775 > return g.throw(self.type, self.value, self.tb)
2012-03-11 09:11:38.861859 > File "/home/piotrek/btc/p2pool/p2pool/util/jsonrpc.py", line 67, in callRemote
2012-03-11 09:11:38.862715 > raise Error(**resp['error'])
2012-03-11 09:11:38.862826 > File "/home/piotrek/btc/p2pool/p2pool/util/jsonrpc.py", line 17, in init
2012-03-11 09:11:38.862914 > raise TypeError('message must be a unicode')
2012-03-11 09:11:38.863039 > exceptions.TypeError: message must be a unicode

I trying downgrade p2pool and bitcoin, deleting .bitcoin directory contents but it does not help.

Memory leak?

Just after start BTC node hows 514M res and 789M virt
LTC node 149M res and 355M virt
commit 0f89cba

My IP in BOOTSTRAP_ADDRS

My old IP 89.78.212.44 is in "BOOTSTRAP_ADDRS" if you can change it to
my new ip 89.79.79.195 or portals94.ns01.us. My node has a pretty
good uptime so it may be useful. Sorry for poor English.

Add editable blackislt to pemamently ban peers

Simple text file that contains IP addresses we NOT want to connect.
It need be in data directory, separate for each coin.
Reason: ATM I have huge traffic on my TRC node because of not updated peers that are asking for chain over and over...

Error after restart and update to newest version(unstable)

I Update to newest version but:
File "/home/bitcoin/Pulpit/p2pool/p2pool/main.py", line 386, in get_stale_frac
shares, stale_shares = get_share_counts()
File "/home/bitcoin/Pulpit/p2pool/p2pool/main.py", line 355, in get_share_counts
matching_in_chain = share_counter(current_work.value['best_share_hash'], height) | removed_unstales
File "/home/bitcoin/Pulpit/p2pool/p2pool/util/memoize.py", line 10, in b
res = f(_args)
File "/home/bitcoin/Pulpit/p2pool/p2pool/util/skiplist.py", line 22, in call
self.skips[pos] = math.geometric(self.P), [(self.previous(pos), self.get_delta(pos))]
File "/home/bitcoin/Pulpit/p2pool/p2pool/skiplists.py", line 55, in previous
return self.tracker.shares[element].previous_hash
exceptions.KeyError: 7588769092949848306548026092918532115673641383211119216609462093343208572958L
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1141, in unwindGenerator
return _inlineCallbacks(None, f(_args, kwargs), Deferred())
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1020, in _inlineCallbacks
result = g.send(result)
File "/home/bitcoin/Pulpit/p2pool/p2pool/worker_interface.py", line 81, in render_GET
'result': (yield self.parent.getwork(request, long_poll=True)),
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1141, in unwindGenerator
return _inlineCallbacks(None, f(_args, *_kwargs), Deferred())
--- ---
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1020, in _inlineCallbacks
result = g.send(result)
File "/home/bitcoin/Pulpit/p2pool/p2pool/worker_interface.py", line 151, in getwork
res = self.compute(work, get_payout_script(request, self.net))
File "/home/bitcoin/Pulpit/p2pool/p2pool/main.py", line 396, in compute
nonce=run_identifier + struct.pack('<Q', random.randrange(2
64)) + get_stale_frac(),
File "/home/bitcoin/Pulpit/p2pool/p2pool/main.py", line 386, in get_stale_frac
shares, stale_shares = get_share_counts()
File "/home/bitcoin/Pulpit/p2pool/p2pool/main.py", line 355, in get_share_counts
matching_in_chain = share_counter(current_work.value['best_share_hash'], height) | removed_unstales
File "/home/bitcoin/Pulpit/p2pool/p2pool/util/memoize.py", line 10, in b
res = f(_args)
File "/home/bitcoin/Pulpit/p2pool/p2pool/util/skiplist.py", line 22, in call
self.skips[pos] = math.geometric(self.P), [(self.previous(pos), self.get_delta(pos))]
File "/home/bitcoin/Pulpit/p2pool/p2pool/skiplists.py", line 55, in previous
return self.tracker.shares[element].previous_hash
exceptions.KeyError: 7588769092949848306548026092918532115673641383211119216609462093343208572958L
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1141, in unwindGenerator
return _inlineCallbacks(None, f(_args, kwargs), Deferred())
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1020, in _inlineCallbacks
result = g.send(result)
File "/home/bitcoin/Pulpit/p2pool/p2pool/worker_interface.py", line 119, in rpc_getwork
defer.returnValue((yield self.getwork(request)))
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1141, in unwindGenerator
return _inlineCallbacks(None, f(_args, *_kwargs), Deferred())
--- ---
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1020, in _inlineCallbacks
result = g.send(result)
File "/home/bitcoin/Pulpit/p2pool/p2pool/worker_interface.py", line 151, in getwork
res = self.compute(work, get_payout_script(request, self.net))
File "/home/bitcoin/Pulpit/p2pool/p2pool/main.py", line 396, in compute
nonce=run_identifier + struct.pack('<Q', random.randrange(2
64)) + get_stale_frac(),
File "/home/bitcoin/Pulpit/p2pool/p2pool/main.py", line 386, in get_stale_frac
shares, stale_shares = get_share_counts()
File "/home/bitcoin/Pulpit/p2pool/p2pool/main.py", line 355, in get_share_counts
matching_in_chain = share_counter(current_work.value['best_share_hash'], height) | removed_unstales
File "/home/bitcoin/Pulpit/p2pool/p2pool/util/memoize.py", line 10, in b
res = f(_args)
File "/home/bitcoin/Pulpit/p2pool/p2pool/util/skiplist.py", line 22, in call
self.skips[pos] = math.geometric(self.P), [(self.previous(pos), self.get_delta(pos))]
File "/home/bitcoin/Pulpit/p2pool/p2pool/skiplists.py", line 55, in previous
return self.tracker.shares[element].previous_hash
exceptions.KeyError: 7588769092949848306548026092918532115673641383211119216609462093343208572958L
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1141, in unwindGenerator
return _inlineCallbacks(None, f(_args, kwargs), Deferred())
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1020, in _inlineCallbacks
result = g.send(result)
File "/home/bitcoin/Pulpit/p2pool/p2pool/worker_interface.py", line 119, in rpc_getwork
defer.returnValue((yield self.getwork(request)))
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1141, in unwindGenerator
return _inlineCallbacks(None, f(_args, *_kwargs), Deferred())
--- ---
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1020, in _inlineCallbacks
result = g.send(result)
File "/home/bitcoin/Pulpit/p2pool/p2pool/worker_interface.py", line 151, in getwork
res = self.compute(work, get_payout_script(request, self.net))
File "/home/bitcoin/Pulpit/p2pool/p2pool/main.py", line 396, in compute
nonce=run_identifier + struct.pack('<Q', random.randrange(2
64)) + get_stale_frac(),
File "/home/bitcoin/Pulpit/p2pool/p2pool/main.py", line 386, in get_stale_frac
shares, stale_shares = get_share_counts()
File "/home/bitcoin/Pulpit/p2pool/p2pool/main.py", line 355, in get_share_counts
matching_in_chain = share_counter(current_work.value['best_share_hash'], height) | removed_unstales
File "/home/bitcoin/Pulpit/p2pool/p2pool/util/memoize.py", line 10, in b
res = f(_args)
File "/home/bitcoin/Pulpit/p2pool/p2pool/util/skiplist.py", line 22, in call
self.skips[pos] = math.geometric(self.P), [(self.previous(pos), self.get_delta(pos))]
File "/home/bitcoin/Pulpit/p2pool/p2pool/skiplists.py", line 55, in previous
return self.tracker.shares[element].previous_hash
exceptions.KeyError: 7588769092949848306548026092918532115673641383211119216609462093343208572958L
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 455, in _startRunCallbacks
self._runCallbacks()
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 542, in _runCallbacks
current.result = callback(current.result, *args, *_kw)
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1076, in gotResult
_inlineCallbacks(r, g, deferred)
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1020, in _inlineCallbacks
result = g.send(result)
--- ---
File "/home/bitcoin/Pulpit/p2pool/p2pool/main.py", line 601, in main
att_s = p2pool.get_pool_attempts_per_second(tracker, current_work.value['best_share_hash'], args.net, min(height - 1, 120))
File "/home/bitcoin/Pulpit/p2pool/p2pool/data.py", line 214, in get_pool_attempts_per_second
far = tracker.shares[tracker.get_nth_parent_hash(previous_share_hash, dist - 1)]
exceptions.KeyError: 48368331586514227636026762698988269514879943490773079748979706679161865496034L
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1141, in unwindGenerator
return _inlineCallbacks(None, f(_args, *_kwargs), Deferred())
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1020, in _inlineCallbacks
result = g.send(result)
File "/home/bitcoin/Pulpit/p2pool/p2pool/worker_interface.py", line 81, in render_GET
'result': (yield self.parent.getwork(request, long_poll=True)),
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1141, in unwindGenerator
return _inlineCallbacks(None, f(_args, _kwargs), Deferred())
--- ---
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1020, in _inlineCallbacks
result = g.send(result)
File "/home/bitcoin/Pulpit/p2pool/p2pool/worker_interface.py", line 151, in getwork
res = self.compute(work, get_payout_script(request, self.net))
File "/home/bitcoin/Pulpit/p2pool/p2pool/main.py", line 396, in compute
nonce=run_identifier + struct.pack('<Q', random.randrange(2
_64)) + get_stale_frac(),
File "/home/bitcoin/Pulpit/p2pool/p2pool/main.py", line 386, in get_stale_frac
shares, stale_shares = get_share_counts()
File "/home/bitcoin/Pulpit/p2pool/p2pool/main.py", line 355, in get_share_counts
matching_in_chain = share_counter(current_work.value['best_share_hash'], height) | removed_unstales
File "/home/bitcoin/Pulpit/p2pool/p2pool/util/memoize.py", line 10, in b
res = f(_args)
File "/home/bitcoin/Pulpit/p2pool/p2pool/util/skiplist.py", line 22, in call
self.skips[pos] = math.geometric(self.P), [(self.previous(pos), self.get_delta(pos))]
File "/home/bitcoin/Pulpit/p2pool/p2pool/skiplists.py", line 55, in previous
return self.tracker.shares[element].previous_hash
exceptions.KeyError: 7588769092949848306548026092918532115673641383211119216609462093343208572958L
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1141, in unwindGenerator
return _inlineCallbacks(None, f(_args, *_kwargs), Deferred())
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1020, in _inlineCallbacks
result = g.send(result)
File "/home/bitcoin/Pulpit/p2pool/p2pool/worker_interface.py", line 119, in rpc_getwork
defer.returnValue((yield self.getwork(request)))
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1141, in unwindGenerator
return _inlineCallbacks(None, f(_args, _kwargs), Deferred())
--- ---
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1020, in _inlineCallbacks
result = g.send(result)
File "/home/bitcoin/Pulpit/p2pool/p2pool/worker_interface.py", line 151, in getwork
res = self.compute(work, get_payout_script(request, self.net))
File "/home/bitcoin/Pulpit/p2pool/p2pool/main.py", line 396, in compute
nonce=run_identifier + struct.pack('<Q', random.randrange(2
_64)) + get_stale_frac(),
File "/home/bitcoin/Pulpit/p2pool/p2pool/main.py", line 386, in get_stale_frac
shares, stale_shares = get_share_counts()
File "/home/bitcoin/Pulpit/p2pool/p2pool/main.py", line 355, in get_share_counts
matching_in_chain = share_counter(current_work.value['best_share_hash'], height) | removed_unstales
File "/home/bitcoin/Pulpit/p2pool/p2pool/util/memoize.py", line 10, in b
res = f(_args)
File "/home/bitcoin/Pulpit/p2pool/p2pool/util/skiplist.py", line 22, in call
self.skips[pos] = math.geometric(self.P), [(self.previous(pos), self.get_delta(pos))]
File "/home/bitcoin/Pulpit/p2pool/p2pool/skiplists.py", line 55, in previous
return self.tracker.shares[element].previous_hash
exceptions.KeyError: 7588769092949848306548026092918532115673641383211119216609462093343208572958L
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1141, in unwindGenerator
return _inlineCallbacks(None, f(_args, *_kwargs), Deferred())
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1020, in _inlineCallbacks
result = g.send(result)
File "/home/bitcoin/Pulpit/p2pool/p2pool/worker_interface.py", line 119, in rpc_getwork
defer.returnValue((yield self.getwork(request)))
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1141, in unwindGenerator
return _inlineCallbacks(None, f(_args, _kwargs), Deferred())
--- ---
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1020, in _inlineCallbacks
result = g.send(result)
File "/home/bitcoin/Pulpit/p2pool/p2pool/worker_interface.py", line 151, in getwork
res = self.compute(work, get_payout_script(request, self.net))
File "/home/bitcoin/Pulpit/p2pool/p2pool/main.py", line 396, in compute
nonce=run_identifier + struct.pack('<Q', random.randrange(2
_64)) + get_stale_frac(),
File "/home/bitcoin/Pulpit/p2pool/p2pool/main.py", line 386, in get_stale_frac
shares, stale_shares = get_share_counts()
File "/home/bitcoin/Pulpit/p2pool/p2pool/main.py", line 355, in get_share_counts
matching_in_chain = share_counter(current_work.value['best_share_hash'], height) | removed_unstales
File "/home/bitcoin/Pulpit/p2pool/p2pool/util/memoize.py", line 10, in b
res = f(_args)
File "/home/bitcoin/Pulpit/p2pool/p2pool/util/skiplist.py", line 22, in call
self.skips[pos] = math.geometric(self.P), [(self.previous(pos), self.get_delta(pos))]
File "/home/bitcoin/Pulpit/p2pool/p2pool/skiplists.py", line 55, in previous
return self.tracker.shares[element].previous_hash
exceptions.KeyError: 7588769092949848306548026092918532115673641383211119216609462093343208572958L
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1141, in unwindGenerator
return _inlineCallbacks(None, f(_args, *_kwargs), Deferred())
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1020, in _inlineCallbacks
result = g.send(result)
File "/home/bitcoin/Pulpit/p2pool/p2pool/worker_interface.py", line 81, in render_GET
'result': (yield self.parent.getwork(request, long_poll=True)),
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1141, in unwindGenerator
return _inlineCallbacks(None, f(_args, _kwargs), Deferred())
--- ---
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1020, in _inlineCallbacks
result = g.send(result)
File "/home/bitcoin/Pulpit/p2pool/p2pool/worker_interface.py", line 151, in getwork
res = self.compute(work, get_payout_script(request, self.net))
File "/home/bitcoin/Pulpit/p2pool/p2pool/main.py", line 396, in compute
nonce=run_identifier + struct.pack('<Q', random.randrange(2
_64)) + get_stale_frac(),
File "/home/bitcoin/Pulpit/p2pool/p2pool/main.py", line 386, in get_stale_frac
shares, stale_shares = get_share_counts()
File "/home/bitcoin/Pulpit/p2pool/p2pool/main.py", line 355, in get_share_counts
matching_in_chain = share_counter(current_work.value['best_share_hash'], height) | removed_unstales
File "/home/bitcoin/Pulpit/p2pool/p2pool/util/memoize.py", line 10, in b
res = f(_args)
File "/home/bitcoin/Pulpit/p2pool/p2pool/util/skiplist.py", line 22, in call
self.skips[pos] = math.geometric(self.P), [(self.previous(pos), self.get_delta(pos))]
File "/home/bitcoin/Pulpit/p2pool/p2pool/skiplists.py", line 55, in previous
return self.tracker.shares[element].previous_hash
exceptions.KeyError: 7588769092949848306548026092918532115673641383211119216609462093343208572958L
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1141, in unwindGenerator
return _inlineCallbacks(None, f(_args, *_kwargs), Deferred())
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1020, in _inlineCallbacks
result = g.send(result)
File "/home/bitcoin/Pulpit/p2pool/p2pool/worker_interface.py", line 119, in rpc_getwork
defer.returnValue((yield self.getwork(request)))
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1141, in unwindGenerator
return _inlineCallbacks(None, f(_args, _kwargs), Deferred())
--- ---
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1020, in _inlineCallbacks
result = g.send(result)
File "/home/bitcoin/Pulpit/p2pool/p2pool/worker_interface.py", line 151, in getwork
res = self.compute(work, get_payout_script(request, self.net))
File "/home/bitcoin/Pulpit/p2pool/p2pool/main.py", line 396, in compute
nonce=run_identifier + struct.pack('<Q', random.randrange(2
_64)) + get_stale_frac(),
File "/home/bitcoin/Pulpit/p2pool/p2pool/main.py", line 386, in get_stale_frac
shares, stale_shares = get_share_counts()
File "/home/bitcoin/Pulpit/p2pool/p2pool/main.py", line 355, in get_share_counts
matching_in_chain = share_counter(current_work.value['best_share_hash'], height) | removed_unstales
File "/home/bitcoin/Pulpit/p2pool/p2pool/util/memoize.py", line 10, in b
res = f(_args)
File "/home/bitcoin/Pulpit/p2pool/p2pool/util/skiplist.py", line 22, in call
self.skips[pos] = math.geometric(self.P), [(self.previous(pos), self.get_delta(pos))]
File "/home/bitcoin/Pulpit/p2pool/p2pool/skiplists.py", line 55, in previous
return self.tracker.shares[element].previous_hash
exceptions.KeyError: 7588769092949848306548026092918532115673641383211119216609462093343208572958L
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1141, in unwindGenerator
return _inlineCallbacks(None, f(_args, *_kwargs), Deferred())
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1020, in _inlineCallbacks
result = g.send(result)
File "/home/bitcoin/Pulpit/p2pool/p2pool/worker_interface.py", line 119, in rpc_getwork
defer.returnValue((yield self.getwork(request)))
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1141, in unwindGenerator
return _inlineCallbacks(None, f(_args, _kwargs), Deferred())
--- ---
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1020, in _inlineCallbacks
result = g.send(result)
File "/home/bitcoin/Pulpit/p2pool/p2pool/worker_interface.py", line 151, in getwork
res = self.compute(work, get_payout_script(request, self.net))
File "/home/bitcoin/Pulpit/p2pool/p2pool/main.py", line 396, in compute
nonce=run_identifier + struct.pack('<Q', random.randrange(2
_64)) + get_stale_frac(),
File "/home/bitcoin/Pulpit/p2pool/p2pool/main.py", line 386, in get_stale_frac
shares, stale_shares = get_share_counts()
File "/home/bitcoin/Pulpit/p2pool/p2pool/main.py", line 355, in get_share_counts
matching_in_chain = share_counter(current_work.value['best_share_hash'], height) | removed_unstales
File "/home/bitcoin/Pulpit/p2pool/p2pool/util/memoize.py", line 10, in b
res = f(_args)
File "/home/bitcoin/Pulpit/p2pool/p2pool/util/skiplist.py", line 22, in call
self.skips[pos] = math.geometric(self.P), [(self.previous(pos), self.get_delta(pos))]
File "/home/bitcoin/Pulpit/p2pool/p2pool/skiplists.py", line 55, in previous
return self.tracker.shares[element].previous_hash
exceptions.KeyError: 7588769092949848306548026092918532115673641383211119216609462093343208572958L
raw
raw
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1141, in unwindGenerator
return _inlineCallbacks(None, f(_args, *_kwargs), Deferred())
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1020, in _inlineCallbacks
result = g.send(result)
File "/home/bitcoin/Pulpit/p2pool/p2pool/worker_interface.py", line 81, in render_GET
'result': (yield self.parent.getwork(request, long_poll=True)),
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1141, in unwindGenerator
return _inlineCallbacks(None, f(_args, _kwargs), Deferred())
--- ---
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1020, in _inlineCallbacks
result = g.send(result)
File "/home/bitcoin/Pulpit/p2pool/p2pool/worker_interface.py", line 151, in getwork
res = self.compute(work, get_payout_script(request, self.net))
File "/home/bitcoin/Pulpit/p2pool/p2pool/main.py", line 396, in compute
nonce=run_identifier + struct.pack('<Q', random.randrange(2
_64)) + get_stale_frac(),
File "/home/bitcoin/Pulpit/p2pool/p2pool/main.py", line 386, in get_stale_frac
shares, stale_shares = get_share_counts()
File "/home/bitcoin/Pulpit/p2pool/p2pool/main.py", line 355, in get_share_counts
matching_in_chain = share_counter(current_work.value['best_share_hash'], height) | removed_unstales
File "/home/bitcoin/Pulpit/p2pool/p2pool/util/memoize.py", line 10, in b
res = f(_args)
File "/home/bitcoin/Pulpit/p2pool/p2pool/util/skiplist.py", line 22, in call
self.skips[pos] = math.geometric(self.P), [(self.previous(pos), self.get_delta(pos))]
File "/home/bitcoin/Pulpit/p2pool/p2pool/skiplists.py", line 55, in previous
return self.tracker.shares[element].previous_hash
exceptions.KeyError: 7588769092949848306548026092918532115673641383211119216609462093343208572958L
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1141, in unwindGenerator
return _inlineCallbacks(None, f(_args, *_kwargs), Deferred())
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1020, in _inlineCallbacks
result = g.send(result)
File "/home/bitcoin/Pulpit/p2pool/p2pool/worker_interface.py", line 119, in rpc_getwork
defer.returnValue((yield self.getwork(request)))
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1141, in unwindGenerator
return _inlineCallbacks(None, f(_args, _kwargs), Deferred())
--- ---
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1020, in _inlineCallbacks
result = g.send(result)
File "/home/bitcoin/Pulpit/p2pool/p2pool/worker_interface.py", line 151, in getwork
res = self.compute(work, get_payout_script(request, self.net))
File "/home/bitcoin/Pulpit/p2pool/p2pool/main.py", line 396, in compute
nonce=run_identifier + struct.pack('<Q', random.randrange(2
_64)) + get_stale_frac(),
File "/home/bitcoin/Pulpit/p2pool/p2pool/main.py", line 386, in get_stale_frac
shares, stale_shares = get_share_counts()
File "/home/bitcoin/Pulpit/p2pool/p2pool/main.py", line 355, in get_share_counts
matching_in_chain = share_counter(current_work.value['best_share_hash'], height) | removed_unstales
File "/home/bitcoin/Pulpit/p2pool/p2pool/util/memoize.py", line 10, in b
res = f(_args)
File "/home/bitcoin/Pulpit/p2pool/p2pool/util/skiplist.py", line 22, in call
self.skips[pos] = math.geometric(self.P), [(self.previous(pos), self.get_delta(pos))]
File "/home/bitcoin/Pulpit/p2pool/p2pool/skiplists.py", line 55, in previous
return self.tracker.shares[element].previous_hash
exceptions.KeyError: 7588769092949848306548026092918532115673641383211119216609462093343208572958L
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1141, in unwindGenerator
return _inlineCallbacks(None, f(_args, *_kwargs), Deferred())
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1020, in _inlineCallbacks
result = g.send(result)
File "/home/bitcoin/Pulpit/p2pool/p2pool/worker_interface.py", line 119, in rpc_getwork
defer.returnValue((yield self.getwork(request)))
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1141, in unwindGenerator
return _inlineCallbacks(None, f(_args, _kwargs), Deferred())
--- ---
File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1020, in _inlineCallbacks
result = g.send(result)
File "/home/bitcoin/Pulpit/p2pool/p2pool/worker_interface.py", line 151, in getwork
res = self.compute(work, get_payout_script(request, self.net))
File "/home/bitcoin/Pulpit/p2pool/p2pool/main.py", line 396, in compute
nonce=run_identifier + struct.pack('<Q', random.randrange(2
_64)) + get_stale_frac(),
File "/home/bitcoin/Pulpit/p2pool/p2pool/main.py", line 386, in get_stale_frac
shares, stale_shares = get_share_counts()
File "/home/bitcoin/Pulpit/p2pool/p2pool/main.py", line 355, in get_share_counts
matching_in_chain = share_counter(current_work.value['best_share_hash'], height) | removed_unstales
File "/home/bitcoin/Pulpit/p2pool/p2pool/util/memoize.py", line 10, in b
res = f(_args)
File "/home/bitcoin/Pulpit/p2pool/p2pool/util/skiplist.py", line 22, in call
self.skips[pos] = math.geometric(self.P), [(self.previous(pos), self.get_delta(pos))]
File "/home/bitcoin/Pulpit/p2pool/p2pool/skiplists.py", line 55, in previous
return self.tracker.shares[element].previous_hash
exceptions.KeyError: 7588769092949848306548026092918532115673641383211119216609462093343208572958L
^CLost peer 72.14.191.28:9333
bitcoin@bitcoin-desktop:~/Pulpit/p2pool$

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.