Author

Topic: P2Pool Settings - Digitalcoin (Read 1140 times)

sr. member
Activity: 252
Merit: 250
November 13, 2013, 01:10:21 PM
#2
altcha.in is down try http://dgc.cryptocoinexplorer.com
newbie
Activity: 22
Merit: 0
November 11, 2013, 04:54:32 PM
#1
Hello,

Can a P2Pool Guru look at the by me used networks settings for DigitalCoin, while on the Statistik page is see nothing and the Log show errors, but i can mining.

/bitcoin/networks.py -Snippet Digitalcoin
Code:
    digitalcoin=math.Object(
        P2P_PREFIX='fbc0b6db'.decode('hex'),
        P2P_PORT=7999,
        ADDRESS_VERSION=30,
        RPC_PORT=7998,
        RPC_CHECK=defer.inlineCallbacks(lambda bitcoind: defer.returnValue(
            'digitalcoinaddress' in (yield bitcoind.rpc_help()) and
            not (yield bitcoind.rpc_getinfo())['testnet']
        )),
        SUBSIDY_FUNC=lambda height: 20*10000000 >> (height + 1)//4730400,
        POW_FUNC=lambda data: pack.IntType(256).unpack(__import__('ltc_scrypt').getPoWHash(data)),
        BLOCK_PERIOD=20, # s targetspacing
        SYMBOL='DGC',
        CONF_FILE_FUNC=lambda: os.path.join(os.path.join(os.environ['APPDATA'], 'digitalcoin') if platform.system() == 'Windows' else os.path.expanduser('~/Library/Application Support/digitalcoin/') if platform.system() == 'Darwin' else os.path.expanduser('~/.digitalcoin'), 'digitalcoin.conf'),
        BLOCK_EXPLORER_URL_PREFIX='http://altcha.in/block/',
        ADDRESS_EXPLORER_URL_PREFIX='http://altcha.in/address/',
        SANE_TARGET_RANGE=(2**256//100000000 - 1, 2**256//1000 - 1),
        DUMB_SCRYPT_DIFF=2**16,
        DUST_THRESHOLD=1e8,
    ),

/networks.py -Snippet Digitalcoin
Code:
    digitalcoin=math.Object(
        PARENT=networks.nets['digitalcoin'],
        SHARE_PERIOD=15, # seconds target spacing
        NEW_SHARE_PERIOD=15, # seconds
        CHAIN_LENGTH=24*60*60//15, # shares
        REAL_CHAIN_LENGTH=3*60*60//15, # shares
        TARGET_LOOKBEHIND=200, # shares coinbase maturity
        SPREAD=90, # blocks
        NEW_SPREAD=90, # blocks
        IDENTIFIER='7696CF5EB2F68CC3'.decode('hex'),
        PREFIX='4C2307E841C11D7F'.decode('hex'),
        P2P_PORT=23610,
        MIN_TARGET=0,
        MAX_TARGET=2**256//2**20 - 1,
        PERSIST=False,
        WORKER_PORT=8810,
        BOOTSTRAP_ADDRS=' '.split(' '),
        ANNOUNCE_CHANNEL='#p2pool',
        VERSION_CHECK=lambda v: True,
    ),

Snippet Error Log
Code:
2013-11-11 22:51:58.668000 > Error in DeferredResource handler:
2013-11-11 22:51:58.668134 > Traceback (most recent call last):
2013-11-11 22:51:58.668183 >   File "/home/.p2pool/p2pool/util/deferred_resource.py", line 24, in render
2013-11-11 22:51:58.668230 >     defer.maybeDeferred(resource.Resource.render, self, request).addCallbacks(finish, finish_error)
2013-11-11 22:51:58.668273 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 134, in maybeDeferred
2013-11-11 22:51:58.668314 >     result = f(*args, **kw)
2013-11-11 22:51:58.668354 >   File "/usr/lib/python2.7/dist-packages/twisted/web/resource.py", line 216, in render
2013-11-11 22:51:58.668393 >     return m(request)
2013-11-11 22:51:58.668432 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1181, in unwindGenerator
2013-11-11 22:51:58.668472 >     return _inlineCallbacks(None, gen, Deferred())
2013-11-11 22:51:58.668511 > --- ---
2013-11-11 22:51:58.668550 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1039, in _inlineCallbacks
2013-11-11 22:51:58.668642 >     result = g.send(result)
2013-11-11 22:51:58.668689 >   File "/home/.p2pool/p2pool/web.py", line 189, in render_GET
2013-11-11 22:51:58.668780 >     res = yield self.func(*self.args)
2013-11-11 22:51:58.668823 >   File "/home/.p2pool/p2pool/web.py", line 337, in
2013-11-11 22:51:58.668864 >     tx_explorer_url_prefix=node.net.PARENT.TX_EXPLORER_URL_PREFIX,
2013-11-11 22:51:58.668912 > exceptions.AttributeError: 'Object' object has no attribute 'TX_EXPLORER_URL_PREFIX'
2013-11-11 22:51:58.695686 > Error in DeferredResource handler:
2013-11-11 22:51:58.695809 > Traceback (most recent call last):
2013-11-11 22:51:58.695924 >   File "/home/.p2pool/p2pool/util/deferred_resource.py", line 24, in render
2013-11-11 22:51:58.696029 >     defer.maybeDeferred(resource.Resource.render, self, request).addCallbacks(finish, finish_error)
2013-11-11 22:51:58.696131 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 134, in maybeDeferred
2013-11-11 22:51:58.696230 >     result = f(*args, **kw)
2013-11-11 22:51:58.696329 >   File "/usr/lib/python2.7/dist-packages/twisted/web/resource.py", line 216, in render
2013-11-11 22:51:58.696437 >     return m(request)
2013-11-11 22:51:58.696537 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1181, in unwindGenerator
2013-11-11 22:51:58.696658 >     return _inlineCallbacks(None, gen, Deferred())
2013-11-11 22:51:58.696785 > --- ---
2013-11-11 22:51:58.696898 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1039, in _inlineCallbacks
2013-11-11 22:51:58.697008 >     result = g.send(result)
2013-11-11 22:51:58.697106 >   File "/home/.p2pool/p2pool/web.py", line 189, in render_GET
2013-11-11 22:51:58.697204 >     res = yield self.func(*self.args)
2013-11-11 22:51:58.697302 >   File "/home/.p2pool/p2pool/web.py", line 337, in
2013-11-11 22:51:58.697400 >     tx_explorer_url_prefix=node.net.PARENT.TX_EXPLORER_URL_PREFIX,
2013-11-11 22:51:58.697498 > exceptions.AttributeError: 'Object' object has no attribute 'TX_EXPLORER_URL_PREFIX'
2013-11-11 22:51:58.743896 > Error in DeferredResource handler:
2013-11-11 22:51:58.744089 > Traceback (most recent call last):
2013-11-11 22:51:58.744201 >   File "/home/.p2pool/p2pool/util/deferred_resource.py", line 24, in render
2013-11-11 22:51:58.744261 >     defer.maybeDeferred(resource.Resource.render, self, request).addCallbacks(finish, finish_error)
2013-11-11 22:51:58.744357 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 134, in maybeDeferred
2013-11-11 22:51:58.744466 >     result = f(*args, **kw)
2013-11-11 22:51:58.744644 >   File "/usr/lib/python2.7/dist-packages/twisted/web/resource.py", line 216, in render
2013-11-11 22:51:58.744755 >     return m(request)
2013-11-11 22:51:58.744854 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1181, in unwindGenerator
2013-11-11 22:51:58.744952 >     return _inlineCallbacks(None, gen, Deferred())
2013-11-11 22:51:58.745046 > --- ---
2013-11-11 22:51:58.745159 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1039, in _inlineCallbacks
2013-11-11 22:51:58.745230 >     result = g.send(result)
2013-11-11 22:51:58.745323 >   File "/home/.p2pool/p2pool/web.py", line 189, in render_GET
2013-11-11 22:51:58.745425 >     res = yield self.func(*self.args)
2013-11-11 22:51:58.745480 >   File "/home/.p2pool/p2pool/web.py", line 444, in
2013-11-11 22:51:58.745613 >     new_root.putChild('graph_data', WebInterface(lambda source, view: hd.datastreams[source].dataviews[view].get_data(time.time())))
2013-11-11 22:51:58.745718 > exceptions.KeyError: 'local_share_hash_rate'
2013-11-11 22:51:59.358766 P2Pool: 10 shares in chain (10 verified/29 total) Peers: 3 (2 incoming)
2013-11-11 22:51:59.359025  Local: 121kH/s in last 9.4 minutes Local dead on arrival: ~1.0% (0-2%) Expected time to share: 3.4 minutes
2013-11-11 22:51:59.359154  Shares: 10 (0 orphan, 0 dead) Stale rate: ~0.0% (0-28%) Efficiency: ~100.0% (72-100%) Current payout: 15.0000 DGC
2013-11-11 22:51:59.359310  Pool: 825kH/s Stale rate: 0.0% Expected time to block: 1.6 hours
2013-11-11 22:52:01.648539 > Error in DeferredResource handler:
2013-11-11 22:52:01.648654 > Traceback (most recent call last):
2013-11-11 22:52:01.648705 >   File "/home/.p2pool/p2pool/util/deferred_resource.py", line 24, in render
2013-11-11 22:52:01.648751 >     defer.maybeDeferred(resource.Resource.render, self, request).addCallbacks(finish, finish_error)
2013-11-11 22:52:01.648794 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 134, in maybeDeferred
2013-11-11 22:52:01.648835 >     result = f(*args, **kw)
2013-11-11 22:52:01.648875 >   File "/usr/lib/python2.7/dist-packages/twisted/web/resource.py", line 216, in render
2013-11-11 22:52:01.648917 >     return m(request)
2013-11-11 22:52:01.648972 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1181, in unwindGenerator
2013-11-11 22:52:01.649016 >     return _inlineCallbacks(None, gen, Deferred())
2013-11-11 22:52:01.649056 > --- ---
2013-11-11 22:52:01.649157 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/defer.py", line 1039, in _inlineCallbacks
2013-11-11 22:52:01.649216 >     result = g.send(result)
2013-11-11 22:52:01.649273 >   File "/home/.p2pool/p2pool/web.py", line 189, in render_GET
2013-11-11 22:52:01.649317 >     res = yield self.func(*self.args)
2013-11-11 22:52:01.649357 >   File "/home/.p2pool/p2pool/web.py", line 337, in
2013-11-11 22:52:01.649398 >     tx_explorer_url_prefix=node.net.PARENT.TX_EXPLORER_URL_PREFIX,
2013-11-11 22:52:01.649438 > exceptions.AttributeError: 'Object' object has no attribute 'TX_EXPLORER_URL_PREFIX'
Jump to: