Hyacin
Newbie
Offline
Activity: 29
Merit: 0
|
|
March 07, 2014, 08:01:42 AM |
|
I've recently tried to port p2pool to some newer alt coins and have been hitting a brick wall. I'm pretty sure this going beyond basic network.py values but I wanted to get some opinions. I've tried setting this up for grandcoin, lottocoin, luckycoin and earthcoin. The one I'm most interested in getting to work is earthcoin, so let's take that one for example. This is the error I receive when running it. <snip> Now, what I noticed is in the pack.py file, the functions <snip> is where the error is being thrown. The pos is always 1 character bigger then len(data) when the error is thrown. So setting the ignore_trailing=True eliminates the error, but when testing it against earthcoin, we hashed overnight and found a few blocks. However, none of them were actually committed to the blockchain and nothing was paid out. So I assume that is messing with the blocks submitted and they're not valid. If you don't change that variable, the error that was mentioned is thrown for a while. Eventually it will connect to the wallet daemon, and you can actually hash in the pool, however the connection to the wallet will go unstable and the errors will start again. The connection to the wallet never really stabilizes. Just for reference here are my earthcoin network.py values. <snip> If anyone that has better python skills than me, and a better knowledge of how p2pool works cares to help, I'd greatly appreciate it. Like I said, I don't think this is isolated to earthcoin as I've seen this behavior with several new alt coins. Also, I've posted a bug report on the official p2pool github in case anyone wants to contribute. Anyone have any updates/more information on this? The bug report hasn't been updated in quite a while it appears. I recall reading somewhere (probably this thread) that it has something to do with transaction comments in some coins. I tried setting ignore_trailing to True as mentioned above, and that resolves my "Error getting work from bitcoind" errors, and p2pool will accept and work on block with transactions, but when they're solved it is unable to submit them ... Successful block since making the change (which showed up in my wallet moments later) - 2014-03-07 02:39:16.574778 New work for worker! Difficulty: 0.001344 Share difficulty: 0.013897 Total block value: 1000.000000 GDC including 0 transactions 2014-03-07 02:39:16.577876 New work for worker! Difficulty: 0.000750 Share difficulty: 0.013897 Total block value: 1000.000000 GDC including 0 transactions <snip> 2014-03-07 02:39:32.021422 GOT BLOCK FROM MINER! Passing to bitcoind! http://grandcoin.org/blocks/63e787bf697863ca4657ce95fac4f7c72ac37963b6969343c00b9ecbfbc5d44b 2014-03-07 02:39:32.021524 2014-03-07 02:39:32.029135 GOT BLOCK FROM PEER! Passing to bitcoind! fbc5d44b bitcoin: http://grandcoin.org/blocks/63e787bf697863ca4657ce95fac4f7c72ac37963b6969343c00b9ecbfbc5d44b
Unsuccessful block since making the change - 2014-03-07 02:46:05.004488 New work for worker! Difficulty: 0.001263 Share difficulty: 0.015175 Total block value: 1000.000000 GDC including 1 transactions 2014-03-07 02:46:05.007726 New work for worker! Difficulty: 0.000750 Share difficulty: 0.015175 Total block value: 1000.000000 GDC including 1 transactions <snip> 2014-03-07 02:46:05.869605 GOT BLOCK FROM MINER! Passing to bitcoind! http://grandcoin.org/blocks/a0cf1b50837d2c59dab244ad472879ef1de9e93ff961f05a530d09abb32c0fef 2014-03-07 02:46:05.875186 > GOT INCOMPLETE BLOCK FROM PEER! b32c0fef bitcoin: http://grandcoin.org/blocks/a0cf1b50837d2c59dab244ad472879ef1de9e93ff961f05a530d09abb32c0fef <snip> 2014-03-07 02:46:05.892902 > Error submitting block: (will retry) 2014-03-07 02:46:05.892947 > Traceback (most recent call last): 2014-03-07 02:46:05.892983 > File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 575, in _runCallbacks 2014-03-07 02:46:05.893016 > current.result = callback(current.result, *args, **kw) 2014-03-07 02:46:05.893051 > File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1126, in gotResult 2014-03-07 02:46:05.893083 > _inlineCallbacks(r, g, deferred) 2014-03-07 02:46:05.893118 > File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1068, in _inlineCallbacks 2014-03-07 02:46:05.893149 > result = result.throwExceptionIntoGenerator(g) 2014-03-07 02:46:05.893182 > File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 389, in throwExceptionIntoGenerator 2014-03-07 02:46:05.893213 > return g.throw(self.type, self.value, self.tb) 2014-03-07 02:46:05.893246 > --- <exception caught here> --- 2014-03-07 02:46:05.893277 > File "/home/rob/p2pool/p2pool/util/deferral.py", line 41, in f 2014-03-07 02:46:05.893307 > result = yield func(*args, **kwargs) 2014-03-07 02:46:05.893338 > File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1068, in _inlineCallbacks 2014-03-07 02:46:05.893368 > result = result.throwExceptionIntoGenerator(g) 2014-03-07 02:46:05.893400 > File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 389, in throwExceptionIntoGenerator 2014-03-07 02:46:05.893431 > return g.throw(self.type, self.value, self.tb) 2014-03-07 02:46:05.893463 > File "/home/rob/p2pool/p2pool/bitcoin/helper.py", line 76, in submit_block_rpc 2014-03-07 02:46:05.893494 > result = yield bitcoind.rpc_getblocktemplate(dict(mode='submit', data=bitcoin_data.block_type.pack(block).encode('hex'))) 2014-03-07 02:46:05.893526 > File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1068, in _inlineCallbacks 2014-03-07 02:46:05.893558 > result = result.throwExceptionIntoGenerator(g) 2014-03-07 02:46:05.893635 > File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 389, in throwExceptionIntoGenerator 2014-03-07 02:46:05.893665 > return g.throw(self.type, self.value, self.tb) 2014-03-07 02:46:05.893699 > File "/home/rob/p2pool/p2pool/util/jsonrpc.py", line 133, in _http_do 2014-03-07 02:46:05.893729 > raise Error_for_code(resp['error']['code'])(resp['error']['message'], resp['error'].get('data', None)) 2014-03-07 02:46:05.893771 > p2pool.util.jsonrpc.NarrowError: -1 CDataStream::read() : end of data
It retries a few times and then gives up. I've switched back to solo mining right off the wallet (so, no merged ) until I can figure this out, but I don't know where to begin, and half a day of reading everything I could find online hasn't yielded a solution
|
|
|
|
Hyacin
Newbie
Offline
Activity: 29
Merit: 0
|
|
March 07, 2014, 09:58:01 AM |
|
ok, I think I've got it looking for a comment now by modifying the transaction stuff in p2pool/data.py and p2pool/bitcoin/data.py, but now I'm getting EarlyEnd, I'm guessing when there isn't a comment present - 2014-03-07 04:55:02.756009 > Error getting work from bitcoind: 2014-03-07 04:55:02.756092 > Traceback (most recent call last): 2014-03-07 04:55:02.756140 > File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 575, in _runCallbacks 2014-03-07 04:55:02.756183 > current.result = callback(current.result, *args, **kw) 2014-03-07 04:55:02.756223 > File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1126, in gotResult 2014-03-07 04:55:02.756263 > _inlineCallbacks(r, g, deferred) 2014-03-07 04:55:02.756301 > File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1068, in _inlineCallbacks 2014-03-07 04:55:02.756341 > result = result.throwExceptionIntoGenerator(g) 2014-03-07 04:55:02.756432 > File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 389, in throwExceptionIntoGenerator 2014-03-07 04:55:02.756478 > return g.throw(self.type, self.value, self.tb) 2014-03-07 04:55:02.756517 > --- <exception caught here> --- 2014-03-07 04:55:02.756554 > File "/home/rob/p2pool/p2pool/util/deferral.py", line 41, in f 2014-03-07 04:55:02.756591 > result = yield func(*args, **kwargs) 2014-03-07 04:55:02.756648 > File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1070, in _inlineCallbacks 2014-03-07 04:55:02.756721 > result = g.send(result) 2014-03-07 04:55:02.756791 > File "/home/rob/p2pool/p2pool/bitcoin/helper.py", line 49, in getwork 2014-03-07 04:55:02.756861 > transactions=map(bitcoin_data.tx_type.unpack, packed_transactions), 2014-03-07 04:55:02.756932 > File "/home/rob/p2pool/p2pool/util/pack.py", line 63, in unpack 2014-03-07 04:55:02.757004 > obj = self._unpack(data, ignore_trailing) 2014-03-07 04:55:02.757077 > File "/home/rob/p2pool/p2pool/util/pack.py", line 42, in _unpack 2014-03-07 04:55:02.757135 > obj, (data2, pos) = self.read((data, 0)) 2014-03-07 04:55:02.757175 > File "/home/rob/p2pool/p2pool/util/pack.py", line 295, in read 2014-03-07 04:55:02.757212 > item[key], file = type_.read(file) 2014-03-07 04:55:02.757249 > File "/home/rob/p2pool/p2pool/util/pack.py", line 310, in read 2014-03-07 04:55:02.757286 > value, file = self.inner.read(file) 2014-03-07 04:55:02.757323 > File "/home/rob/p2pool/p2pool/util/pack.py", line 218, in read 2014-03-07 04:55:02.757360 > data, file = read(file, self.bytes) 2014-03-07 04:55:02.757396 > File "/home/rob/p2pool/p2pool/util/pack.py", line 16, in read 2014-03-07 04:55:02.757433 > raise EarlyEnd() 2014-03-07 04:55:02.757468 > p2pool.util.pack.EarlyEnd:
This I am not sure how to deal with. If there are any python ninjas out there that could point me in the right direction that would be great.
|
|
|
|
Hyacin
Newbie
Offline
Activity: 29
Merit: 0
|
|
March 07, 2014, 05:40:14 PM |
|
I won't be around much for the weekend so a summary of my efforts so far in case anyone stumbles upon this and wants to have a crack at it or is already working on it - p2pool/networks.py - grandcoin=math.Object( PARENT=networks.nets['grandcoin'], SHARE_PERIOD=15, # seconds CHAIN_LENGTH=24*60*60//10, # shares REAL_CHAIN_LENGTH=24*60*60//10, # shares TARGET_LOOKBEHIND=50, # shares SPREAD=40, # blocks IDENTIFIER='4665617468657212'.decode('hex'), PREFIX='b131010ba6d472a9'.decode('hex'), P2P_PORT=12377, MIN_TARGET=0, MAX_TARGET=2**256//2**20 - 1, PERSIST=False, WORKER_PORT=19327, BOOTSTRAP_ADDRS=''.split(' '), ANNOUNCE_CHANNEL='#p2pool-alt', VERSION_CHECK=lambda v: True, ), p2pool/bitcoin/networks.py - grandcoin=math.Object( P2P_PREFIX='fdc1a5db'.decode('hex'), P2P_PORT=12377, ADDRESS_VERSION=97, RPC_PORT=12378, RPC_CHECK=defer.inlineCallbacks(lambda bitcoind: defer.returnValue( 'grandcoinaddress' in (yield bitcoind.rpc_help()) and not (yield bitcoind.rpc_getinfo())['testnet'] )), SUBSIDY_FUNC=lambda height: 1000*100000000 >> (height + 1)//700800, POW_FUNC=lambda data: pack.IntType(256).unpack(__import__('ltc_scrypt').getPoWHash(data)), BLOCK_PERIOD=45, # s SYMBOL='GDC', CONF_FILE_FUNC=lambda: os.path.join(os.path.join(os.environ['APPDATA'], 'Grandcoin') if platform.system() == 'Windows' else os.path.expanduser('~/Library/Application Support/Grandcoin/') if platform.system() == 'Darwin' else os.path.expanduser('~/.grandcoin'), 'grandcoin.conf'), BLOCK_EXPLORER_URL_PREFIX='http://grandcoin.org/blocks/', ADDRESS_EXPLORER_URL_PREFIX='http://grandcoin.org/blocks/', SANE_TARGET_RANGE=(2**256//1000000000 - 1, 2**256//1000 - 1), DUMB_SCRYPT_DIFF=2**16, DUST_THRESHOLD=1e8, ), This alone of course yields LateEnd errors anytime work comes in with transactions due to the extra field (tx comment). That error points to the unpack function in p2pool/util/pack.py where as already discussed in this thread, we can set ignore_trailing to True. If we do that in both places it is set to False, p2pool will accept and work on blocks with transactions, but fails when trying to submit the solved block with - 2014-03-07 02:46:05.893463 > File "/home/rob/p2pool/p2pool/bitcoin/helper.py", line 76, in submit_block_rpc 2014-03-07 02:46:05.893494 > result = yield bitcoind.rpc_getblocktemplate(dict(mode='submit', data=bitcoin_data.block_type.pack(block).encode('hex'))) 2014-03-07 02:46:05.893526 > File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1068, in _inlineCallbacks <snip> 2014-03-07 02:46:05.893771 > p2pool.util.jsonrpc.NarrowError: -1 CDataStream::read() : end of data I played around in helper.py with the submit function to no avail, so instead I went after the transaction format (realizing full well that this might break coins that do not have a transaction comment, including possibly the merged coins I am working on, but if I can get it working *with* comments, I can then figure out how to make it deal with stuff without comments) - p2pool/data.py (search for lock_time) - gentx = dict( version=1, tx_ins=[dict( previous_output=None, sequence=None, script=share_data['coinbase'], )], tx_outs=[dict(value=amounts[script], script=script) for script in dests if amounts[script] or script == DONATION_SCRIPT] + [dict( value=0, script='\x6a\x28' + cls.get_ref_hash(net, share_info, ref_merkle_link) + pack.IntType(64).pack(last_txout_nonce), )], lock_time=0, txcomment=0, ) p2pool/bitcoin/data.py (search again for lock_time) - tx_type = pack.ComposedType([ ('version', pack.IntType(32)), ('tx_ins', pack.ListType(pack.ComposedType([ ('previous_output', pack.PossiblyNoneType(dict(hash=0, index=2**32 - 1), pack.ComposedType([ ('hash', pack.IntType(256)), ('index', pack.IntType(32)), ]))), ('script', pack.VarStrType()), ('sequence', pack.PossiblyNoneType(2**32 - 1, pack.IntType(32))), ]))), ('tx_outs', pack.ListType(pack.ComposedType([ ('value', pack.IntType(64)), ('script', pack.VarStrType()), ]))), ('lock_time', pack.IntType(32)), ('txcomment', pack.IntType(256), ]) and this of lead me to the EarlyEnd in my previous post. I also tried ('txcomment', pack.PossiblyNoneType(2**32 - 1, pack.IntType(256))), which lead to the same. I did try a varstrtype for txcomment but that lead to some strange errors - 2014-03-07 04:29:06.554275 > Squelched JSON error: 2014-03-07 04:29:06.554367 > Traceback (most recent call last): 2014-03-07 04:29:06.554453 > File "/usr/lib/python2.7/dist-packages/twisted/protocols/basic.py", line 464, in dataReceived 2014-03-07 04:29:06.554525 > self.lineReceived(line) 2014-03-07 04:29:06.554593 > File "/home/rob/p2pool/p2pool/util/jsonrpc.py", line 164, in lineReceived 2014-03-07 04:29:06.554666 > _handle(line, self, response_handler=self._matcher.got_response).addCallback(lambda line2: self.sendLine(line2) if line2 is not None else None) 2014-03-07 04:29:06.554737 > File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1213, in unwindGenerator 2014-03-07 04:29:06.554807 > return _inlineCallbacks(None, gen, Deferred()) 2014-03-07 04:29:06.554869 > File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1070, in _inlineCallbacks 2014-03-07 04:29:06.554931 > result = g.send(result) 2014-03-07 04:29:06.554990 > --- <exception caught here> --- 2014-03-07 04:29:06.555051 > File "/home/rob/p2pool/p2pool/util/jsonrpc.py", line 85, in _handle 2014-03-07 04:29:06.555112 > result = yield method_meth(*list(preargs) + list(params)) 2014-03-07 04:29:06.555173 > File "/home/rob/p2pool/p2pool/bitcoin/stratum.py", line 74, in rpc_submit 2014-03-07 04:29:06.555235 > return got_response(header, worker_name, coinb_nonce) 2014-03-07 04:29:06.555295 > File "/home/rob/p2pool/p2pool/bitcoin/worker_interface.py", line 136, in <lambda> 2014-03-07 04:29:06.555357 > lambda header, user, coinbase_nonce: handler(header, user, pack.IntType(self._my_bits).pack(nonce) + coinbase_nonce), 2014-03-07 04:29:06.555420 > File "/home/rob/p2pool/p2pool/work.py", line 389, in got_response 2014-03-07 04:29:06.555481 > share = get_share(header, last_txout_nonce) 2014-03-07 04:29:06.555542 > File "/home/rob/p2pool/p2pool/data.py", line 213, in get_share 2014-03-07 04:29:06.555604 > hash_link=prefix_to_hash_link(bitcoin_data.tx_type.pack(gentx)[:-32-8-4], cls.gentx_before_refhash), 2014-03-07 04:29:06.555667 > File "/home/rob/p2pool/p2pool/data.py", line 24, in prefix_to_hash_link 2014-03-07 04:29:06.555726 > assert prefix.endswith(const_ending), (prefix, const_ending) 2014-03-07 04:29:06.555799 > exceptions.AssertionError: ('\x01\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\xff\xff\xff\xff8\x03\xec~\x05,\xfa\xbemm\x97y\x13T\xf7\x80\'\xefW\x13^\x1cO[}in"\x13\x0bO(D\xe8\xfd\xdb(\x15R\x1cK|\x04\x00\x00\x00\x00\x00\x00\x00\x06/P2SH/\xff\xff\xff\xff\x03\x00\xe8vH\x17\x00\x00\x00\x19v\xa9\x14\xe5\xbd\xd9\xb6\x7f\n\x80\xdcHD\xb4U\x15Mc\xce.\x8d\xbc\x86\x88\xac\x00\x00\x00\x00\x00\x00\x00\x00CA\x04\xff\xd0=\xe4Jn\x11\xb9\x91\x7f:)\xf9D2\x83\xd9\x87\x1c\x9dt>\xf3\r^\xdd\xcd7\tKd\xd1\xb3\xd8\t\x04\x96\xb52Vxk\xf5\xc8)2\xec#\xc3\xb7M\x9f\x05\xa6\xf9Z\x8bU)5&VfK\xac\x00\x00\x00\x00\x00\x00\x00\x00*j(\xa8', 'CA\x04\xff\xd0=\xe4Jn\x11\xb9\x91\x7f:)\xf9D2\x83\xd9\x87\x1c\x9dt>\xf3\r^\xdd\xcd7\tKd\xd1\xb3\xd8\t\x04\x96\xb52Vxk\xf5\xc8)2\xec#\xc3\xb7M\x9f\x05\xa6\xf9Z\x8bU)5&VfK\xac\x00\x00\x00\x00\x00\x00\x00\x00*j(') I realize it's a string in the grandcoin code, but I'm guessing and hoping it's converted to something else before it's sent over, if it's not I may be barking up the wrong tree though. I also tried PossiblyNoneType/VarStrType and got the same AssertionError. Any help, tips, pointers, code, genie wishes used towards this, online python tutorials, or anything else that could be of use would be GREATLY appreciated!
|
|
|
|
IvanGrozniy
Newbie
Offline
Activity: 22
Merit: 0
|
|
March 18, 2014, 03:03:26 AM |
|
Hi, I am trying to set up p2pool mining for the new crypto money called CrimeaCoin. I tried connecting miners (CGMiner and SGminer) from my local computer and I am getting these error messages: 1. Locally: C:\Program Files\sgminer-4.1.0-windows>sgminer -o http://54.84.97.75:29399 -u CYSP8gb4T2aGRNyNRPkDVG3HMNctZL7cD9 -p 34523523324tertewgdsgsdfgsd -T [22:31:41] Started sgminer 4.1.0 [22:31:41] Loaded configuration file sgminer.conf [22:31:42] Probing for an alive pool [22:31:52] Waiting for work to be available from pools. [22:32:12] Pool 1 slow/down or URL or credentials invalid [22:32:12] Pool 0 slow/down or URL or credentials invalid [22:32:42] No servers were found that could be used to get work from.
[22:32:42] Please check the details from the list below of the servers you have input [22:32:42] Most likely you have input the wrong URL, forgotten to add a port, or have not set up workers [22:32:42] Pool: 0 URL: http://54.84.97.75:29399 User: CYSP8gb4T2aGRNyNRPkDVG3HMNctZL7cD9 Password: 34523523324tertewgdsgsdfgsd [22:32:42] Pool: 1 URL: http://54.84.97.75:29399 User: CYSP8gb4T2aGRNyNRPkDVG3HMNctZL7cD9 Password: CYSP8gb4T2aGRNyNRPkDVG3HMNctZL7cD9 [22:32:42] No servers could be used! Exiting. C:\Program Files\sgminer-4.1.0-windows> 2. On the server I am getting the following: 2014-03-18 02:57:20.294056 Determining payout address... 2014-03-18 02:57:20.294181 Getting payout address from bitcoind... 2014-03-18 02:57:20.297373 ...success! Payout address: CKAfhTtX6CudCANCKVSa8nuVxnhNowAu2d 2014-03-18 02:57:20.322358 2014-03-18 02:57:20.322559 Loading shares... 2014-03-18 02:57:20.322967 ...done loading 0 shares (0 verified)! 2014-03-18 02:57:20.323142 2014-03-18 02:57:20.323331 Initializing work... 2014-03-18 02:57:20.480716 ...success! 2014-03-18 02:57:20.480976 2014-03-18 02:57:20.481190 Joining p2pool network using port 29399... 2014-03-18 02:57:20.483070 ...success! 2014-03-18 02:57:20.486045 2014-03-18 02:57:20.488709 Listening for workers on '' port 29499... 2014-03-18 02:57:20.613184 ...success! 2014-03-18 02:57:20.613422 2014-03-18 02:57:20.613631 Started successfully! 2014-03-18 02:57:20.613830 Go to http://127.0.0.1:29499/ to view graphs and statistics! 2014-03-18 02:57:20.614045 Donating 0.0% of work towards P2Pool's development. Please donate to encourage further development of P2Pool! 2014-03-18 02:57:20.614227 2014-03-18 02:57:21.157642 Peer 0.0.0.0:29399 misbehaving, will drop and ban. Reason: was connected to self 2014-03-18 02:57:21.157994 Bad peer banned: ('0.0.0.0', 29399) 2014-03-18 02:57:21.158759 Peer 127.0.0.1:50571 misbehaving, will drop and ban. Reason: was connected to self 2014-03-18 02:57:21.158971 Bad peer banned: ('127.0.0.1', 50571) 2014-03-18 02:57:23.636639 P2Pool: 0 shares in chain (0 verified/0 total) Peers: 0 (0 incoming) 2014-03-18 02:57:23.636797 Local: 0H/s in last 0.0 seconds Local dead on arrival: ??? Expected time to share: ??? 2014-03-18 02:57:38.647482 P2Pool: 0 shares in chain (0 verified/0 total) Peers: 0 (0 incoming) 2014-03-18 02:57:38.647646 Local: 0H/s in last 0.0 seconds Local dead on arrival: ??? Expected time to share: ??? 2014-03-18 02:57:53.656534 P2Pool: 0 shares in chain (0 verified/0 total) Peers: 0 (0 incoming) 2014-03-18 02:57:53.656703 Local: 0H/s in last 0.0 seconds Local dead on arrival: ??? Expected time to share: ??? 2014-03-18 02:57:54.953175 Handshake timed out, disconnecting from 108.50.228.148:12901 2014-03-18 02:57:54.953522 Handshake timed out, disconnecting from 108.50.228.148:12900 2014-03-18 02:58:05.056238 Handshake timed out, disconnecting from 108.50.228.148:12902 2014-03-18 02:58:05.056584 Handshake timed out, disconnecting from 108.50.228.148:12903 2014-03-18 02:58:08.680911 P2Pool: 0 shares in chain (0 verified/0 total) Peers: 0 (0 incoming) 2014-03-18 02:58:08.681080 Local: 0H/s in last 0.0 seconds Local dead on arrival: ??? Expected time to share: ??? I am stuck with this error message " Handshake timed out, disconnecting from". Tried searching on Internet but nothing helpful. My code is p2pool/p2pool/networks.py crimeacoin=math.Object( PARENT=networks.nets['crimeacoin'], SHARE_PERIOD=15, # seconds CHAIN_LENGTH=24*60*60//10, # shares REAL_CHAIN_LENGTH=24*60*60//10, # shares TARGET_LOOKBEHIND=200, # shares SPREAD=3, # blocks IDENTIFIER='7c45630909c3eb49'.decode('hex'), PREFIX='3f6a2b46c49d15ef'.decode('hex'), P2P_PORT=29399, MIN_TARGET=0, MAX_TARGET=2**256//2**20 - 1, PERSIST=True, WORKER_PORT=29499, BOOTSTRAP_ADDRS=''.split(' '), ANNOUNCE_CHANNEL='#cma', VERSION_CHECK=lambda v: True, VERSION_WARNING=lambda v: 'Upgrade Litecoin to >=0.9.0.0!' if v < 80501 else None, ), crimeacoin_testnet=math.Object( PARENT=networks.nets['crimeacoin_testnet'], SHARE_PERIOD=15, # seconds CHAIN_LENGTH=24*60*60//10, # shares REAL_CHAIN_LENGTH=24*60*60//10, # shares TARGET_LOOKBEHIND=200, # shares SPREAD=3, # blocks IDENTIFIER='e037d5b8c6923410'.decode('hex'), PREFIX='7208c1a53ef629b0'.decode('hex'), P2P_PORT=29699, MIN_TARGET=0, MAX_TARGET=2**256//2**20 - 1, PERSIST=True, WORKER_PORT=29799, BOOTSTRAP_ADDRS=''.split(' '), ANNOUNCE_CHANNEL='#cma', VERSION_CHECK=lambda v: True, VERSION_WARNING=lambda v: 'Upgrade Litecoin to >=0.9.0.0!' if v < 80501 else None, ),
p2pool/p2pool/bitcoin/networks.py crimeacoin=math.Object( P2P_PREFIX='fbc0b6db'.decode('hex'), P2P_PORT=29342, ADDRESS_VERSION=28, RPC_PORT=29332, RPC_CHECK=defer.inlineCallbacks(lambda bitcoind: defer.returnValue( 'crimeacoinaddress' in (yield bitcoind.rpc_help()) and not (yield bitcoind.rpc_getinfo())['testnet'] )), SUBSIDY_FUNC=lambda height: 125*100000000 >> (height + 1)//5100000, POW_FUNC=lambda data: pack.IntType(256).unpack(__import__('ltc_scrypt').getPoWHash(data)), BLOCK_PERIOD=150, # s SYMBOL='CMA', CONF_FILE_FUNC=lambda: os.path.join(os.path.join(os.environ['APPDATA'], 'Crimeacoin') if platform.system() == 'Windows' else os.path.expanduser('~/Library/Application Support/Crimeacoin/') if platform.system() == 'Darwin' else os.path.expanduser('~/.crimeacoin'), 'crimeacoin.conf'), BLOCK_EXPLORER_URL_PREFIX='http://explorer.crimeacoin.org/block/', ADDRESS_EXPLORER_URL_PREFIX='http://explorer.crimeacoin.org/address/', TX_EXPLORER_URL_PREFIX='http://explorer.crimeacoin.org/tx/', SANE_TARGET_RANGE=(2**256//1000000000 - 1, 2**256//1000 - 1), DUMB_SCRYPT_DIFF=2**16, DUST_THRESHOLD=0.03e8, ), crimeacoin_testnet=math.Object( P2P_PREFIX='fcc1b7dc'.decode('hex'), P2P_PORT=29343, ADDRESS_VERSION=28, RPC_PORT=29333, RPC_CHECK=defer.inlineCallbacks(lambda bitcoind: defer.returnValue( 'crimeacoinaddress' in (yield bitcoind.rpc_help()) and (yield bitcoind.rpc_getinfo())['testnet'] )), SUBSIDY_FUNC=lambda height: 125*100000000 >> (height + 1)//5100000, POW_FUNC=lambda data: pack.IntType(256).unpack(__import__('ltc_scrypt').getPoWHash(data)), BLOCK_PERIOD=150, # s SYMBOL='tCMA', CONF_FILE_FUNC=lambda: os.path.join(os.path.join(os.environ['APPDATA'], 'Crimeacoin') if platform.system() == 'Windows' else os.path.expanduser('~/Library/Application Support/Crimeacoin/') if platform.system() == 'Darwin' else os.path.expanduser('~/.crimeacoin'), 'crimeacoin.conf'), BLOCK_EXPLORER_URL_PREFIX='http://nonexistent-litecoin-testnet-explorer/block/', ADDRESS_EXPLORER_URL_PREFIX='http://nonexistent-litecoin-testnet-explorer/address/', TX_EXPLORER_URL_PREFIX='http://nonexistent-litecoin-testnet-explorer/tx/', SANE_TARGET_RANGE=(2**256//1000000000 - 1, 2**256 - 1), DUMB_SCRYPT_DIFF=2**16, DUST_THRESHOLD=1e8, ), Does anybody know what is wrong? I will appreciate any help. Thanks!
|
|
|
|
tagged
|
|
March 19, 2014, 12:48:41 AM |
|
Hi all! I am trying to start a p2pool for GPUCoin, got a lot father that i thought i might on the first night! self teaching and doing this on a linux vps. I am getting this error when launching the run_p2pool.py: 2014-03-18 20:46:28.221623 > --- <exception caught here> --- 2014-03-18 20:46:28.221653 > File "/root/p2pool-gpuc/p2pool/util/deferral.py", line 41, in f 2014-03-18 20:46:28.221682 > result = yield func(*args, **kwargs) 2014-03-18 20:46:28.221710 > File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1039, in _inlineCallbacks 2014-03-18 20:46:28.221740 > result = g.send(result) 2014-03-18 20:46:28.221768 > File "/root/p2pool-gpuc/p2pool/node.py", line 218, in poll_header 2014-03-18 20:46:28.221797 > handle_header((yield self.factory.conn.value.get_block_header(self.bitcoind_work.value['previous_block']))) 2014-03-18 20:46:28.221833 > File "/root/p2pool-gpuc/p2pool/node.py", line 200, in handle_header 2014-03-18 20:46:28.221870 > if not (self.net.PARENT.POW_FUNC(bitcoin_data.block_header_type.pack(new_header)) <= self.bitcoind_work.value['bits'].target): 2014-03-18 20:46:28.221895 > File "/root/p2pool-gpuc/p2pool/bitcoin/networks.py", line 243, in <lambda> 2014-03-18 20:46:28.221914 > POW_FUNC=lambda data: pack.IntType(256).unpack(__import__('vtc_scrypt').getPoWHash(data)), 2014-03-18 20:46:28.221947 > exceptions.ImportError: No module named vtc_scrypt 2014-03-18 20:46:28.321285 > Unhandled error in Deferred: 2014-03-18 20:46:28.321478 > Unhandled Error 2014-03-18 20:46:28.321517 > Traceback (most recent call last): 2014-03-18 20:46:28.321539 > File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 362, in callback 2014-03-18 20:46:28.321561 > self._startRunCallbacks(result) 2014-03-18 20:46:28.321581 > File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 458, in _startRunCallbacks 2014-03-18 20:46:28.321601 > self._runCallbacks() 2014-03-18 20:46:28.321621 > File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 545, in _runCallbacks 2014-03-18 20:46:28.321641 > current.result = callback(current.result, *args, **kw) 2014-03-18 20:46:28.321660 > File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1095, in gotResult 2014-03-18 20:46:28.321680 > _inlineCallbacks(r, g, deferred) 2014-03-18 20:46:28.321698 > --- <exception caught here> ---
Would love to figure out what i am doing wrong. Thanks for the help!
|
|
|
|
squiggie
|
|
March 19, 2014, 01:05:56 AM |
|
You need to get the vertcoin p2pool code. Sorry I'm on mobile or I would post a link. Google will get you to the proper github fork for scrypt-n p2pool. Also, I'm pretty sure that fork already has settings for gpucoin. Good luck.
|
|
|
|
roy7
|
|
March 19, 2014, 02:17:56 PM |
|
You need to get the vertcoin p2pool code. Sorry I'm on mobile or I would post a link. Google will get you to the proper github fork for scrypt-n p2pool. Also, I'm pretty sure that fork already has settings for gpucoin. Good luck.
Yup, here it is https://github.com/donSchoe/p2pool-n
|
|
|
|
sergey_negodin
Newbie
Offline
Activity: 1
Merit: 0
|
|
March 20, 2014, 06:32:16 AM |
|
hi all i sow an error like my. help me please i bild maxcoind, wait some tome for update wallet. then start p2pool. 2014-03-20 10:25:23.539717 p2pool (version 13.4-21-g890b935-dirty) 2014-03-20 10:25:23.540108 2014-03-20 10:25:23.540413 Testing bitcoind RPC connection to 'http://127.0.0.1:18108/' with username 'maxuser'... 2014-03-20 10:25:23.582045 ...success! 2014-03-20 10:25:23.582319 Current block hash: 31bfd6fb4d5b33c9db81da6424b78227ee75bf429747de3db154 2014-03-20 10:25:23.582499 Current block height: 118752 2014-03-20 10:25:23.582649 2014-03-20 10:25:23.582840 Testing bitcoind P2P connection to '127.0.0.1:18109'... 2014-03-20 10:25:28.583272 ...taking a while. Common reasons for this include all of bitcoind's connection slots being used...my maxcoin.conf server=1 rpcuser=maxuser rpcpassword=maxpass rpcport=18108 port=18109 addnode=maxcoin.cloudapp.net addnode=maxcoinus.cloudapp.net addnode=maxcoinasia.cloudapp.net addnode=maxexplorer.cloudapp.net addnode=144.76.238.140:8668 addnode=148.251.11.196:8668 addnode=162.251.118.42:8668 addnode=187.104.154.105:8668
my p2pool/networks.py maxcoin=math.Object( PARENT=networks.nets['maxcoin'], SHARE_PERIOD=10, NEW_SHARE_PERIOD=10, # seconds target spacing CHAIN_LENGTH=24*60*60//30, REAL_CHAIN_LENGTH=24*60*60//30, TARGET_LOOKBEHIND=200, SPREAD=15, NEW_SPREAD=15, # blocks IDENTIFIER='8c75636b79212121'.decode('hex'), PREFIX='8a60193ab8b9617f'.decode('hex'), P2P_PORT=8560, MIN_TARGET=0, MAX_TARGET=2**256//2**20 - 1, PERSIST=False, WORKER_PORT=9560, BOOTSTRAP_ADDRS='us-east1.cryptovein.com'.split(' '), ANNOUNCE_CHANNEL='#cryptovein', VERSION_CHECK=lambda v: True, ),
my p2pool/bitcoin/networks.py maxcoin=math.Object( P2P_PREFIX='f9bebbd2'.decode('hex'), P2P_PORT=8668, ADDRESS_VERSION=110, RPC_PORT=8108, RPC_CHECK=defer.inlineCallbacks(lambda bitcoind: defer.returnValue( 'maxcoinaddress' in (yield bitcoind.rpc_help()) and not (yield bitcoind.rpc_getinfo())['testnet'] )), SUBSIDY_FUNC=lambda height: 96*100000000 >> (height + 1)//1036800, POW_FUNC=data.sha3, BLOCK_PERIOD=30, SYMBOL='MAX', CONF_FILE_FUNC=lambda: os.path.join(os.path.join(os.environ['APPDATA'],$ BLOCK_EXPLORER_URL_PREFIX='http://max.cryptoexplore.com/block/', TX_EXPLORER_URL_PREFIX='http://max.cryptoexplore.com/tx/', ADDRESS_EXPLORER_URL_PREFIX='http://max.cryptoexplore.com/address/', SANE_TARGET_RANGE=(2**256//1000000000 - 1, 2**256//1000 - 1), DUMB_SCRYPT_DIFF=1, DUST_THRESHOLD=0.001e8, ),
i try chenge ports in than conf files but it no result can you help me? pls. my os is debian.
|
|
|
|
AcidSplash
Member
Offline
Activity: 101
Merit: 10
|
|
April 02, 2014, 03:35:38 AM |
|
I'm getting this error when trying to start the DigitalCoin P2pool node: Bitcoin version too old! Upgrade to v0.5 or newer!
Any ideas?
|
|
|
|
|
Doom4535
|
|
May 11, 2014, 04:19:03 PM |
|
How do you create new sharechain for a coin? I am trying to make a second chain for execoin (partially to learn how and partially to see if I can make it more friendly toward high intensity settings); however, from what I can tell, it is having issues because I don't have share chain (I am trying to run this inbetween two vm's) for either p2pool to connect to. The code I am trying to use is: execoin2=math.Object( PARENT=networks.nets['execoin'], SHARE_PERIOD=22, # seconds CHAIN_LENGTH=24*60*60//10, # shares REAL_CHAIN_LENGTH=24*60*60//10, # shares TARGET_LOOKBEHIND=200, # shares SPREAD=55, # blocks IDENTIFIER='657865636f696e65'.decode('hex'), PREFIX='65657865636f696e'.decode('hex'), P2P_PORT=25000, MIN_TARGET=4, MAX_TARGET=2**256//2**20 - 1, PERSIST=True, WORKER_PORT=9173, BOOTSTRAP_ADDRS='216.249.119.195'.split(' '), ANNOUNCE_CHANNEL='#p2pool-exe2', VERSION_CHECK=lambda v: True, ),
What are your thoughts?
|
FLAP: FDf1mMgvMU5CxT1vR33iZr5sf9u2Mb4gcr EXE: EKtwmweMBLtg5xNXp1anofonJsJiao1DYY free bitcoin lottery
|
|
|
CartmanSPC
Legendary
Offline
Activity: 1270
Merit: 1000
|
|
May 12, 2014, 08:54:24 AM |
|
How do you create new sharechain for a coin? Change IDENTIFIER & PREFIX and delete the data directory. Although not necessary consider changing the P2P_PORT as well. Change persist to false(?).
|
|
|
|
ads2003uk
|
|
May 12, 2014, 01:13:40 PM |
|
I followed a guide on here to mine solo with an S1, it works perfect for BTC but when trying to mine another sha coin (frc) it returns the following:
"Couldn't link returned work's merkle root with its handler. This should only happen if this process was recently restarted!"
what would cause it?
|
|
|
|
Doom4535
|
|
May 13, 2014, 02:14:14 AM |
|
How do you create new sharechain for a coin? Change IDENTIFIER & PREFIX and delete the data directory. Although not necessary consider changing the P2P_PORT as well. Change persist to false(?). Ok, I've changed the identifier to IDENTIFIER='657865636fe89f61'.decode('hex'), PREFIX='656578656398ed71'.decode('hex'), I've already changed the p2pool port (default is 9986). I would like to have the share chain persist if possible. Does it matter if I use a different announce channel or would it be beneficial if I used the default announce channel (#p2pool-exe)? I also removed my execoin2 data directory, I am still getting code like this when I point a miner at one of the pools (if no miners are on the pool it looks fine, except that is doesn't display an entry for pool stats or shares)... P2Pool: 0 shares in chain (0 verified/0 total) Peers: 1 (0 incoming) 2014-05-12 21:04:28.303093 Local: 0H/s in last 0.0 seconds Local dead on arrival: Expected time to share: > Unhandled Error > Traceback (most recent call last): > File "/opt/zen2pool2/zen2pool/p2pool/main.py", line 578, in run > reactor.run() > File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 1169, in run > self.mainLoop() > File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 1178, in mainLoop > self.runUntilCurrent() > File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 800, in runUntilCurrent > call.func(*call.args, **call.kw) > --- <exception caught here> --- > File "/opt/zen2pool2/zen2pool/p2pool/bitcoin/stratum.py", line 38, in _send_work > x, got_response = self.wb.get_work(*self.wb.preprocess_request('' if self.username is None else self.username)) > File "/opt/zen2pool2/zen2pool/p2pool/bitcoin/worker_interface.py", line 129, in get_work > x, handler = self._inner.get_work(*args) > File "/opt/zen2pool2/zen2pool/p2pool/work.py", line 207, in get_work > raise jsonrpc.Error_for_code(-12345)(u'p2pool is downloading shares') > p2pool.util.jsonrpc.NarrowError: -12345 p2pool is downloading shares > Error while calling merged getauxblock on http://127.0.0.1:26888/: > Traceback (most recent call last): > Failure: twisted.internet.error.ConnectionRefusedError: Connection was refused by other side: 111: Connection refused. edit: well it used ?.?.? without periods instead of
|
FLAP: FDf1mMgvMU5CxT1vR33iZr5sf9u2Mb4gcr EXE: EKtwmweMBLtg5xNXp1anofonJsJiao1DYY free bitcoin lottery
|
|
|
Doom4535
|
|
May 14, 2014, 01:47:03 AM Last edit: May 14, 2014, 04:10:42 AM by Doom4535 |
|
@CartmanSPC and everybody else I am happy to say I got the exechain to work. I am not yet 100% sure why it wasn't working before, but am planning to dig into it. I was first using the zen2pool version of p2pool and am now using donSchoe's version of it. I started the chain on a fresh vm and then connected to it with my other systems and it worked without a hitch (first vm started with persistant set to false and then added the others with true (not sure if this matters, but that is what I did)). The code I used execoin2=math.Object( PARENT=networks.nets['execoin'], SHARE_PERIOD=22, # seconds CHAIN_LENGTH=24*60*60//10, # shares REAL_CHAIN_LENGTH=24*60*60//10, # shares TARGET_LOOKBEHIND=200, # shares SPREAD=55, # blocks IDENTIFIER='657865636fe89f61'.decode('hex'), PREFIX='656578656398ed71'.decode('hex'), P2P_PORT=25000, MIN_TARGET=4, MAX_TARGET=2**256//2**20 - 1, PERSIST=True, WORKER_PORT=9173, BOOTSTRAP_ADDRS='216.249.119.195 216.249.119.194 216.249.119.112'.split(' '), ANNOUNCE_CHANNEL='#p2pool-exe2', VERSION_CHECK=lambda v: True, ),
I will report back later on how the results fair after I've had some more time to test it. Your welcome to test it for your selves to see if the longer block time works better for your gpu's. You can connect to any of my nodes (current bootstrap_addrs's) or make your own. CartmanSPC, do you have an EXE address? *edit: grammer
|
FLAP: FDf1mMgvMU5CxT1vR33iZr5sf9u2Mb4gcr EXE: EKtwmweMBLtg5xNXp1anofonJsJiao1DYY free bitcoin lottery
|
|
|
CartmanSPC
Legendary
Offline
Activity: 1270
Merit: 1000
|
|
May 14, 2014, 03:18:27 AM |
|
Thanks Doom4535. No need to send me anything...happy to help.
|
|
|
|
ads2003uk
|
|
May 14, 2014, 06:16:47 AM |
|
I followed a guide on here to mine solo with an S1, it works perfect for BTC but when trying to mine another sha coin (frc) it returns the following:
"Couldn't link returned work's merkle root with its handler. This should only happen if this process was recently restarted!"
what would cause it?
Anyone?
|
|
|
|
zhongfangcai
Newbie
Offline
Activity: 20
Merit: 0
|
|
May 25, 2014, 04:47:52 PM |
|
2014-05-25 14:57:11.421000 p2pool (version unknown 7032706f6f6c26d6173742) 2014-05-25 14:57:11.421000 2014-05-25 14:57:11.421000 Testing bitcoind RPC connection to ' http://127.0.0.1: 9555/' with username 'abc'... 2014-05-25 14:57:11.500000 ...success! 2014-05-25 14:57:11.500000 Current block hash: 21ef191b72def9e327ab89 04f3b08d955eec3e3d77a9f4693bd6 2014-05-25 14:57:11.500000 Current block height: 0 2014-05-25 14:57:11.500000 2014-05-25 14:57:11.500000 Testing bitcoind P2P connection to '127.0.0.1:19999'. .. 2014-05-25 14:57:16.515000 ...taking a while. Common reasons for this includ e all of bitcoind's connection slots being used... The above,I installing p2pool to a new coin, encounter this problem.How to set the parameters in networks.py. Help me to see what is wrong.Thank you for help me.
|
|
|
|
infernoman
Legendary
Offline
Activity: 964
Merit: 1000
|
|
July 01, 2014, 09:56:34 PM |
|
hey cartmanspc or anyone else who may be able to help. there is a 200k fuelcoin bounty out to help with the p2pool for fuel. i currently have the sharechain bootsrapped and am the only node for p2pool. so i would like to get everything working properly before more people start hopping on. https://bitcointalk.org/index.php?topic=673469.new#new
|
|
|
|
Cassey
Sr. Member
Offline
Activity: 470
Merit: 250
Better to have 100 friends than 100 rubles
|
|
July 15, 2014, 06:14:46 PM |
|
Hi all... I'm the dev for 1Credit and YACCoin. Started fooling around with hosting p2pools for each last night and it was pretty straight forward. Thought everything was fine when I left at 3am - pools were hashing, 99.5% credits were being paid out (0.5% to the author), etc. Looking at the web interface, I would see a single user - me, which was as I expected. Per my coin log, around 7am this morning, while I was soundly asleep, something changed. Instead of receiving 99.5% of the coins, I started ONLY receiving the 0.5% associated with discovering a block. The rest was going to a valid, but totally unknown, coin address. I checked the /users webpage and for this: http://puu.sh/acBhT/aed46ecb76.png
Those all appear to be valid YACCoin addresses, although I don't see any of them hashing in the p2pool log. I have also not publicly advertised the pool (until now) nor the connection port, so am surprised by this. Any thoughts? FYI: ADDRESS_VERSION is set to 31, which is correct for my coin, and matches the leading digit in those in the link above. Possibly related: I failed to find definitions for IDENTIFER and PREFIX and left those the same as in the litecoin.py? Should I have randomized those to avoid coin conflicts? Unrelated: Can someone tell me what PERSIST does? I had to set it to False to get things hashing... Thanks in advance! Cassey
|
Cassey
|
|
|
|