Author

Topic: [Q] p2pool NobleCoin problem (Read 1088 times)

full member
Activity: 322
Merit: 101
January 30, 2014, 12:43:51 PM
#1
Hi guys do have any idea what went wrong here ? ;/ I've added noblecoin to both networks.py files:

Code:
   noblecoin=math.Object(
        PARENT=networks.nets['noblecoin'],
        SHARE_PERIOD=8, # seconds
        CHAIN_LENGTH=6*60*60//8, # shares
        REAL_CHAIN_LENGTH=6*60*60//8, # shares
        TARGET_LOOKBEHIND=20, # shares
        SPREAD=30, # blocks
        IDENTIFIER='6e6f626c656e6f62'.decode('hex'),
        PREFIX='626e6f626c656e6f'.decode('hex'),
        P2P_PORT=8999,
        MIN_TARGET=0,
        MAX_TARGET=2**256//2**20 - 1,
        PERSIST=False,
        WORKER_PORT=8998,
        BOOTSTRAP_ADDRS='p2pool-eu.gotgeeks.com p2pool-us.gotgeeks.com rav3n.dtdns.net p2pool.gotgeeks.com p2pool.dtdns.net solidpool.org'.split(' '),
        ANNOUNCE_CHANNEL='#p2pool-alt',
        VERSION_CHECK=lambda v: True,
    ),

Code:
   noblecoin=math.Object(
        P2P_PREFIX='c0dbf1fd'.decode('hex'),
        P2P_PORT=55884,
        ADDRESS_VERSION=21, #pubkey_address
        RPC_PORT=55883,
        RPC_CHECK=defer.inlineCallbacks(lambda bitcoind: defer.returnValue(
            'noblecoin' in (yield bitcoind.rpc_help()) and
            not (yield bitcoind.rpc_getinfo())['testnet']
        )),
        SUBSIDY_FUNC=lambda height: 5000*100000000,
        POW_FUNC=lambda data: pack.IntType(256).unpack(__import__('ltc_scrypt').getPoWHash(data)),
        BLOCK_PERIOD=60, # s
        SYMBOL='NOBL',
        CONF_FILE_FUNC=lambda: os.path.join(os.path.join(os.environ['APPDATA'], 'noblecoin')
                if platform.system() == 'Windows' else os.path.expanduser('~/Library/Application Support/noblecoin/')
                if platform.system() == 'Darwin' else os.path.expanduser('~/.noblecoin'), 'noblecoin.conf'),
        BLOCK_EXPLORER_URL_PREFIX='http://cryptexplorer.com/block/',
        ADDRESS_EXPLORER_URL_PREFIX='http://cryptexplorer.com/address/',
        TX_EXPLORER_URL_PREFIX='http://cryptexplorer.com/tx/',
        SANE_TARGET_RANGE=(2**256//1000000000 - 1, 2**256//1000 - 1),
        DUMB_SCRYPT_DIFF=2**16,
        DUST_THRESHOLD=0,
    ),

and that's what I get, sorry for the screenshot but I wasn't able to copy it properly;)


and also this:

Code:
2014-01-30 10:20:19.333057 >     result = result.throwExceptionIntoGenerator(g)
2014-01-30 10:20:19.333247 >   File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 389, in throwExceptionIntoGenerator
2014-01-30 10:20:19.333430 >     return g.throw(self.type, self.value, self.tb)
2014-01-30 10:20:19.333618 > --- ---
2014-01-30 10:20:19.333800 >   File "/root/p2pool-rav/p2pool/util/deferral.py", line 41, in f
2014-01-30 10:20:19.333978 >     result = yield func(*args, **kwargs)
2014-01-30 10:20:19.334080 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1099, in _inlineCallbacks
2014-01-30 10:20:19.334179 >     result = g.send(result)
2014-01-30 10:20:19.334279 >   File "/root/p2pool-rav/p2pool/bitcoin/helper.py", line 49, in getwork
2014-01-30 10:20:19.334377 >     transactions=map(bitcoin_data.tx_type.unpack, packed_transactions),
2014-01-30 10:20:19.334454 >   File "/root/p2pool-rav/p2pool/util/pack.py", line 63, in unpack
2014-01-30 10:20:19.334552 >     obj = self._unpack(data, ignore_trailing)
2014-01-30 10:20:19.334660 >   File "/root/p2pool-rav/p2pool/util/pack.py", line 47, in _unpack
2014-01-30 10:20:19.334757 >     raise LateEnd()
2014-01-30 10:20:19.334853 > p2pool.util.pack.LateEnd:
2014-01-30 10:20:26.735934 [b]Handshake timed out, disconnecting from 87.206.175.139:8333[/b]
2014-01-30 10:20:31.709938 P2Pool: 1 shares in chain (1 verified/1 total) Peers: 0 (0 incoming)
2014-01-30 10:20:31.710135  Local: 0H/s in last 0.0 seconds Local dead on arrival: ??? Expected time to share: ???

Where is the 8333 port coming from ? ;/

When I tried to mine :

Code:
0 11:26:46.756220 >     raise LateEnd()
2014-01-30 11:26:46.756395 > p2pool.util.pack.LateEnd:
2014-01-30 11:26:48.160877 > ########################################
2014-01-30 11:26:48.161671 > >>> Warning: LOST CONTACT WITH BITCOIND for 1.3 minutes! Check that it isn't frozen or dead!
2014-01-30 11:26:48.162145 > ########################################
2014-01-30 11:26:48.162636 P2Pool: 6 shares in chain (9 verified/9 total) Peers: 0 (0 incoming)
2014-01-30 11:26:48.163076  Local: 206kH/s in last 2.8 minutes Local dead on arrival: ~1.9% (0-4%) Expected time to share: 2.1 minutes
2014-01-30 11:26:48.163523  Shares: 8 (2 orphan, 1 dead) Stale rate: ~37.5% (13-70%) Efficiency: ~83.3% (40-116%) Current payout: 5000.0000 NOBL
2014-01-30 11:26:48.163781  Pool: 335kH/s Stale rate: 25.0% Expected time to block: 19.3 hours
2014-01-30 11:26:49.763698 > Error getting work from bitcoind:
2014-01-30 11:26:49.764641 > Traceback (most recent call last):
2014-01-30 11:26:49.765142 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 577, in _runCallbacks
2014-01-30 11:26:49.765615 >     current.result = callback(current.result, *args, **kw)
2014-01-30 11:26:49.766081 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1155, in gotResult
2014-01-30 11:26:49.766568 >     _inlineCallbacks(r, g, deferred)
2014-01-30 11:26:49.766818 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1097, in _inlineCallbacks
2014-01-30 11:26:49.767073 >     result = result.throwExceptionIntoGenerator(g)
2014-01-30 11:26:49.767315 >   File "/usr/lib/python2.7/dist-packages/twisted/python/failure.py", line 389, in throwExceptionIntoGenerator
2014-01-30 11:26:49.767574 >     return g.throw(self.type, self.value, self.tb)
2014-01-30 11:26:49.767810 > --- ---
2014-01-30 11:26:49.768042 >   File "/root/p2pool-rav/p2pool/util/deferral.py", line 41, in f
2014-01-30 11:26:49.768370 >     result = yield func(*args, **kwargs)
2014-01-30 11:26:49.768640 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1099, in _inlineCallbacks
2014-01-30 11:26:49.768895 >     result = g.send(result)
2014-01-30 11:26:49.769128 >   File "/root/p2pool-rav/p2pool/bitcoin/helper.py", line 49, in getwork
2014-01-30 11:26:49.769839 >     transactions=map(bitcoin_data.tx_type.unpack, packed_transactions),
2014-01-30 11:26:49.770090 >   File "/root/p2pool-rav/p2pool/util/pack.py", line 63, in unpack
2014-01-30 11:26:49.770442 >     obj = self._unpack(data, ignore_trailing)
2014-01-30 11:26:49.770689 >   File "/root/p2pool-rav/p2pool/util/pack.py", line 47, in _unpack
2014-01-30 11:26:49.770930 >     raise LateEnd()
2014-01-30 11:26:49.771158 > p2pool.util.pack.LateEnd:
2014-01-30 11:26:51.168902 > ########################################
2014-01-30 11:26:51.169504 > >>> Warning: LOST CONTACT WITH BITCOIND for 1.4 minutes! Check that it isn't frozen or dead!
2014-01-30 11:26:51.169964 > ########################################
2014-01-30 11:26:51.170314 P2Pool: 6 shares in chain (9 verified/9 total) Peers: 0 (0 incoming)
2014-01-30 11:26:51.170716  Local: 205kH/s in last 2.9 minutes Local dead on arrival: ~1.9% (0-4%) Expected time to share: 2.1 minutes
2014-01-30 11:26:51.171046  Shares: 8 (2 orphan, 1 dead) Stale rate: ~37.5% (13-70%) Efficiency: ~83.3% (40-116%) Current payout: 5000.0000 NOBL
2014-01-30 11:26:51.171328  Pool: 335kH/s Stale rate: 25.0% Expected time to block: 19.3 hours



Here's my fork of Ravens fork od p2pool Wink
https://github.com/paniczklos/p2pool-rav
Jump to: