P2Pool P2Pool repository and python modules

mr.slaveg

Member
Nov 26, 2014
140
45
78
Branch on a bitbucket.org longer not supported!
The current version p2pool-drk on github.
 
Last edited by a moderator:
  • Like
Reactions: fydel

mr.slaveg

Member
Nov 26, 2014
140
45
78
What should be relevant to the string ADDRESS_VERSION?

Code:
    darkcoin=math.Object(
        P2P_PREFIX='bf0c6bbd'.decode('hex'),
        P2P_PORT=9999,
        ADDRESS_VERSION=76,
        RPC_PORT=9998,
        RPC_CHECK=defer.inlineCallbacks(lambda darkcoind: defer.returnValue(
            'darkcoinaddress' in (yield darkcoind.rpc_help()) and
            not (yield darkcoind.rpc_getinfo())['testnet']
        )),
        SUBSIDY_FUNC=lambda nBits, height: __import__('darkcoin_subsidy').GetBlockBaseValue(nBits, height),
        BLOCKHASH_FUNC=lambda data: pack.IntType(256).unpack(__import__('darkcoin_hash').getPoWHash(data)),
        POW_FUNC=lambda data: pack.IntType(256).unpack(__import__('darkcoin_hash').getPoWHash(data)),
        BLOCK_PERIOD=150, # s
        SYMBOL='DRK',
        CONF_FILE_FUNC=lambda: os.path.join(os.path.join(os.environ['APPDATA'], 'Darkcoin') if platform.system() == 'Windows' else os.path.expanduser('~/Library/Application Support/Darkcoin/') if platform.system() == 'Darwin' else os.path.expanduser('~/.darkcoin'), 'darkcoin.conf'),
        BLOCK_EXPLORER_URL_PREFIX='http://explorer.darkcoin.io/block/',
        ADDRESS_EXPLORER_URL_PREFIX='http://explorer.darkcoin.io/address/',
        TX_EXPLORER_URL_PREFIX='http://explorer.darkcoin.io/tx/',
        SANE_TARGET_RANGE=(2**256//2**32//1000 - 1, 2**256//2**20 - 1),
        DUMB_SCRYPT_DIFF=1,
        DUST_THRESHOLD=0.001e8,
    ),
 

vertoe

Three of Nine
Mar 28, 2014
2,573
1,652
1,283
Unimatrix Zero One
What should be relevant to the string ADDRESS_VERSION?

Code:
    darkcoin=math.Object(
        P2P_PREFIX='bf0c6bbd'.decode('hex'),
        P2P_PORT=9999,
        ADDRESS_VERSION=76,
        RPC_PORT=9998,
        RPC_CHECK=defer.inlineCallbacks(lambda darkcoind: defer.returnValue(
            'darkcoinaddress' in (yield darkcoind.rpc_help()) and
            not (yield darkcoind.rpc_getinfo())['testnet']
        )),
        SUBSIDY_FUNC=lambda nBits, height: __import__('darkcoin_subsidy').GetBlockBaseValue(nBits, height),
        BLOCKHASH_FUNC=lambda data: pack.IntType(256).unpack(__import__('darkcoin_hash').getPoWHash(data)),
        POW_FUNC=lambda data: pack.IntType(256).unpack(__import__('darkcoin_hash').getPoWHash(data)),
        BLOCK_PERIOD=150, # s
        SYMBOL='DRK',
        CONF_FILE_FUNC=lambda: os.path.join(os.path.join(os.environ['APPDATA'], 'Darkcoin') if platform.system() == 'Windows' else os.path.expanduser('~/Library/Application Support/Darkcoin/') if platform.system() == 'Darwin' else os.path.expanduser('~/.darkcoin'), 'darkcoin.conf'),
        BLOCK_EXPLORER_URL_PREFIX='http://explorer.darkcoin.io/block/',
        ADDRESS_EXPLORER_URL_PREFIX='http://explorer.darkcoin.io/address/',
        TX_EXPLORER_URL_PREFIX='http://explorer.darkcoin.io/tx/',
        SANE_TARGET_RANGE=(2**256//2**32//1000 - 1, 2**256//2**20 - 1),
        DUMB_SCRYPT_DIFF=1,
        DUST_THRESHOLD=0.001e8,
    ),
Address versoin is 76, what's your question again?
 

mr.slaveg

Member
Nov 26, 2014
140
45
78
Thank you, I have not been able to find.
Vertoe, please see the changes in the github. I completely untethered version of Bitcoin.
I am sorry for my english. translate.google.ru :rolleyes:
 
  • Like
Reactions: vertoe

vertoe

Three of Nine
Mar 28, 2014
2,573
1,652
1,283
Unimatrix Zero One
Thank you, I have not been able to find.
Vertoe, please see the changes in the github. I completely untethered version of Bitcoin.
I am sorry for my english. translate.google.ru :rolleyes:
Totally OK! I already like your pull request. Will take some more time to review it though, maybe later tonight.

Thanks again.
 

thelazier

Active Member
Jan 5, 2015
240
184
103
Thailand
Dash Address
Xreiza1qGJMT5BpW6BDtRJqwtcBSxGwWYN
which page are you referring to? I just checked 3 p2pool block lists with the link you provided and they are matching, latest p2pool block currently is 211389.
I was too fast to worry while 211274 and 211304 are not shown. Now, latest 4 block of the list is matched.
:)
 

thelazier

Active Member
Jan 5, 2015
240
184
103
Thailand
Dash Address
Xreiza1qGJMT5BpW6BDtRJqwtcBSxGwWYN
vertoe mr.slaveg, please kindly be informed that all testnet p2pool is not working.. :)
BTW, with v0.11.1.17 , there are some errors occurred while running p2pool ,
please kindly check.
Thank you so much for your works. :)