Post
Topic
Board Announcements (Altcoins)
Re: [ANN][X11][GOD] -- Godcoin the Divine Crypto-Currency used by the Gods.
by
gitbknowsall
on 29/06/2014, 03:15:26 UTC
I'm not sure what I'm doing wrong but my P2Pool just gets stuck heres the error:

Code:
MyComputer@MyComputer:~/P2Pool$ python run_p2pool.py --net godcoin
2014-06-29 11:28:55.042533 p2pool (version 34e81c2-dirty)
2014-06-29 11:28:55.042635
2014-06-29 11:28:55.042757 Testing bitcoind RPC connection to 'http://127.0.0.1:12700/' with username 'Hades'...
2014-06-29 11:28:55.057089     ...success!
2014-06-29 11:28:55.057188     Current block hash: 4a71bf43d9ae46388136af3c5e60c017184e25bab431b3bb867158b
2014-06-29 11:28:55.057274     Current block height: 681
2014-06-29 11:28:55.057337
2014-06-29 11:28:55.057421 Testing bitcoind P2P connection to '127.0.0.1:12701'...
2014-06-29 11:29:00.057807     ...taking a while. Common reasons for this include all of bitcoind's connection slots being used...

My p2pool/bitcoin/Networks.py:

Code:
    godcoin=math.Object(
        P2P_PREFIX='a3d5c2f9'.decode('hex'), #I think you get this from Main.cpp PchMessageStart[4] Remove the 0x
        P2P_PORT=12701, #These are the same ports as your coins
        ADDRESS_VERSION=38, #This should be the PUBKEY_ADDRESS:
        RPC_PORT=12700, #Same port as coins
        RPC_CHECK=defer.inlineCallbacks(lambda bitcoind: defer.returnValue(
            'godcoinaddress' in (yield bitcoind.rpc_help()) and #Just changed godcoinaddress
            not (yield bitcoind.rpc_getinfo())['testnet']
        )),                           
        SUBSIDY_FUNC=lambda height: 7*100000000, #No. of coins rewareded per block * Satoshis (100,000,000)
        BLOCKHASH_FUNC=lambda data: pack.IntType(256).unpack(__import__('xcoin_hash').getPoWHash(data)),
        POW_FUNC=lambda data: pack.IntType(256).unpack(__import__('xcoin_hash').getPoWHash(data)),
        BLOCK_PERIOD=600, #Seconds per block
        SYMBOL='GOD', #Coin Symbol in CAPS
        CONF_FILE_FUNC=lambda: os.path.join(os.path.join(os.environ['APPDATA'], 'Godcoin') if platform.system() == 'Windows' else os.path.expanduser('~/Library/Application Support/Godcoin/') if platform.system() == 'Darwin' else os.path.expanduser('~/.godcoin'), 'godcoin.conf'), #.godcoin location in all operating systems
        BLOCK_EXPLORER_URL_PREFIX='http://www.coinexplorers.com/block/', #Unofficial Block Explorer
        ADDRESS_EXPLORER_URL_PREFIX='http://www.coinexplorers.com/address/',
        TX_EXPLORER_URL_PREFIX='http://www.coinexplorers.com/tx/',
        SANE_TARGET_RANGE=(2**256//2**32//1000 - 1, 2**256//2**20 - 1),
        DUMB_SCRYPT_DIFF=1,
        DUST_THRESHOLD=0.001e8,
    ),

My /p2pool/networks.py

Code:
    godcoin=math.Object(
        PARENT=networks.nets['godcoin'],
        SHARE_PERIOD=60, # Seconds before you get rewarded shares. I was told that a good rule of thumb was 1/5 - 1/10 of block time.
        NEW_SHARE_PERIOD=60, # Same thing
        CHAIN_LENGTH=24*60*60//10, # How long the shares are held for
        REAL_CHAIN_LENGTH=24*60*60//10, # Same thing
        TARGET_LOOKBEHIND=200, # shares  //with that the pools share diff is adjusting faster, important if huge hashing power comes to the pool
        SPREAD=3, # How many blocks you can find in 10 mins * 3
        NEW_SPREAD=3, # blocks
        IDENTIFIER='7EAC63359BA9D8F9'.decode('hex'), # Confirmed, this is Random
        PREFIX='7F3E70CBFBCAF4AA'.decode('hex'), # Random as well
        P2P_PORT=12791, #Confirmed these are different to the Coin ports but it doesn't work
        MIN_TARGET=4,
        MAX_TARGET=2**256//2**20 - 1,
        PERSIST=False, # Most people say to set this to true
        WORKER_PORT=12790,
        BOOTSTRAP_ADDRS=''.split(' '),
        ANNOUNCE_CHANNEL='#p2pool-god',
        VERSION_CHECK=lambda v: True,
    ),

My .godcoin/godcoin.conf

Code:
server=1
daemon=1
rpcport=12700
p2pport=12701
ipcallowip=127.0.0.1
rpcuser=Hades
rpcpassword=Hadespassword
addnode=162.243.151.67
addnode=192.241.184.85
addnode=188.226.248.45
addnode=128.199.165.180

Hope we can get this up and running soon.

Okay im going to modify the current darkcoin x11 p2pool source from bitbucket.

https://bitbucket.org/dstorm/p2pool-drk

How are you generating the hex values required by p2pool ?