Pages:
Author

Topic: [ANN][CNC][P2pool] - ChinaCoin (CHNCoin) P2Pool - 1% Fee - Stable and Fast! (Read 8309 times)

newbie
Activity: 19
Merit: 0

Hay maybe a bit of help?

Setting up some P2pools, I have cnc working with newest chncoind (had to change the prefix id) but can't seem to connect to any other p2pools.
I know there are not many but if you could post your p2p_port and bootstrap your using. I added you in my bootstrap but wont connect.
Also check the code below and see if the identifier and prefix matches what your using.


Thanks!

Code:
chncoin=math.Object(
        PARENT=networks.nets['chncoin'],
        SHARE_PERIOD=15, # seconds
        CHAIN_LENGTH=12*60*60//10, # shares
        REAL_CHAIN_LENGTH=12*60*60//10, # shares
        TARGET_LOOKBEHIND=200, # shares
        SPREAD=30, # blocks
        IDENTIFIER='e137d5b8c6923410'.decode('hex'),
        PREFIX='7218c1a53ef629b0'.decode('hex'),
        P2P_PORT=12388,
        MIN_TARGET=0,
        MAX_TARGET=2**256//2**20 - 1,
        PERSIST=False,
        WORKER_PORT=8800,
        BOOTSTRAP_ADDRS='42.2.216.54 cnc.crabdance.com'.split(' '),
        ANNOUNCE_CHANNEL='#p2pool-chn',
        VERSION_CHECK=lambda v: True,
    ),
)

Code:
chncoin=math.Object(
        P2P_PREFIX='fdc2b8dd'.decode('hex'),
        P2P_PORT=8106,
        ADDRESS_VERSION=28,
        RPC_PORT=8108,
        RPC_CHECK=defer.inlineCallbacks(lambda bitcoind: defer.returnValue(
            'chncoinaddress' in (yield bitcoind.rpc_help()) and
            not (yield bitcoind.rpc_getinfo())['testnet']
        )),
        SUBSIDY_FUNC=lambda height: 88*100000000 >> (height + 1)//462528000,
        POW_FUNC=lambda data: pack.IntType(256).unpack(__import__('ltc_scrypt').getPoWHash(data)),
        BLOCK_PERIOD=60, # s
        SYMBOL='CHN',
        CONF_FILE_FUNC=lambda: os.path.join(os.path.join(os.environ['APPDATA'], 'chncoin') if platform.system() == 'Windows' else os.path.expanduser('~/Library/Application Support/chncoin/') if platform.system() == 'Darwin' else os.path.expanduser('~/.chncoin'), 'chncoin.conf'),
        BLOCK_EXPLORER_URL_PREFIX='http://cnc.cryptocoinexplorer.com/block/',
        ADDRESS_EXPLORER_URL_PREFIX='http://cnc.cryptocoinexplorer.com/address/',
        SANE_TARGET_RANGE=(2**256//1000000000 - 1, 2**256//1000 - 1),
        DUMB_SCRYPT_DIFF=2**16,
    ),
full member
Activity: 147
Merit: 101
Datum.network - register for Pre-ICO
extra lucky in last few hours, expected blocks=4, actual blocks mined=10
full member
Activity: 147
Merit: 101
Datum.network - register for Pre-ICO
p2pool pays out transactions fees to miners!
full member
Activity: 147
Merit: 101
Datum.network - register for Pre-ICO
full member
Activity: 147
Merit: 101
Datum.network - register for Pre-ICO
still 1.5x profitable over LTC mining...
full member
Activity: 147
Merit: 101
Datum.network - register for Pre-ICO
CNC still most profitable, around 3x Litecoin Mining Earnings atm, but difficulty is going up, so mine NOW!
full member
Activity: 147
Merit: 101
Datum.network - register for Pre-ICO
come mine here, the other public pool already has around 50% network hashrate, not healthy!
full member
Activity: 147
Merit: 101
Datum.network - register for Pre-ICO
reviving this thread as the pool is up and running again, given the high CNC profitability!
full member
Activity: 147
Merit: 101
Datum.network - register for Pre-ICO
CNC 2nd most profitable coin again, who would've thought Smiley
full member
Activity: 147
Merit: 101
Datum.network - register for Pre-ICO
removed the test node at paysmorecnc.crabdance.com:8888 from first post, if you want to mine CNC see main server in first post
full member
Activity: 147
Merit: 101
Datum.network - register for Pre-ICO
need some more hashrate at http://paysmorecnc.crabdance.com:8888/
point your miners there, DOA is very low!
full member
Activity: 147
Merit: 101
Datum.network - register for Pre-ICO
I setup a test node with better P2Pool parameters, if anyone wants to point miners at it here it goes (and yes if blocks are found this will pay better than if you join an existing p2pool since you will be first in line and the parameters are more sensible too):

http://paysmorecnc.crabdance.com:8888/

If anyone wants to join their node to the network they can get the original P2Pool code (11.4) from https://github.com/forrestv/p2pool
You would start P2Pool just as if you would want to mine litecoin (after making the below code changes!), so e.g. I use:
Code:
./run_p2pool.py --net litecoin -a yourChnCoinAddress --w 8888 --bitcoind-p2p-port 8106 --bitcoind-rpc-port 8108 yourChncoindUser yourChncoindPass

then exchange the litecoin= definitions in p2pool/networks.py and p2pool/bitcoin/networks.py as follows:

p2pool/networks.py:
Code:
   litecoin=math.Object(
        PARENT=networks.nets['litecoin'],
        SHARE_PERIOD=30, # seconds
        CHAIN_LENGTH=12*60*60//10, # shares
        REAL_CHAIN_LENGTH=12*60*60//10, # shares
        TARGET_LOOKBEHIND=200, # shares
        SPREAD=120, # blocks
        IDENTIFIER='43484E636F696D21'.decode('hex'),
        PREFIX='B4C305FD74B0DEBE'.decode('hex'),
        P2P_PORT=12338,
        MIN_TARGET=0,
        MAX_TARGET=2**256//2**20 - 1,
        PERSIST=False,
        WORKER_PORT=8888,
        BOOTSTRAP_ADDRS='paysmorecnc.crabdance.com'.split(' '),
        ANNOUNCE_CHANNEL='#p2pool-alt',
        VERSION_CHECK=lambda v: True,
    ),

p2pool/bitcoin/networks.py:
Code:
   litecoin=math.Object(
        P2P_PREFIX='fbc0b6db'.decode('hex'),
        P2P_PORT=8106,
        ADDRESS_VERSION=28,
        RPC_PORT=8108,
        RPC_CHECK=defer.inlineCallbacks(lambda bitcoind: defer.returnValue(
            'chncoinaddress' in (yield bitcoind.rpc_help()) and
            not (yield bitcoind.rpc_getinfo())['testnet']
        )),
        SUBSIDY_FUNC=lambda height: 88*100000000 >> (height + 1)//4625280,
        POW_FUNC=lambda data: pack.IntType(256).unpack(__import__('ltc_scrypt').getPoWHash(data)),
        BLOCK_PERIOD=60, # s
        SYMBOL='CNC',
        CONF_FILE_FUNC=lambda: os.path.join(os.path.join(os.environ['APPDATA'], 'chncoin') if platform.system() == 'Windows' else os.path.expanduser('~/Library/Application Support/chncoin/') if platform.system() == 'Darwin' else os.path.expanduser('~/.chncoin'), 'chncoin.conf'),
        BLOCK_EXPLORER_URL_PREFIX='http://cnc.cryptocoinexplorer.com/block/',
        ADDRESS_EXPLORER_URL_PREFIX='http://cnc.cryptocoinexplorer.com/address/',
        SANE_TARGET_RANGE=(2**256//1000000000 - 1, 2**256//1000 - 1),
        DUMB_SCRYPT_DIFF=2**16,
    ),
full member
Activity: 147
Merit: 101
Datum.network - register for Pre-ICO
I have seen the Pool Rate dropping over the last few hours, is that the same for everyone or am I loosing some BOOTSTRAP_ADDRS?

Pool rate: 142MH/s (29% DOA+orphan) Share difficulty: 0.105

I have not noticed that, e.g. the pool from the github code linked in the previous code is at the following values for me, taken from my node at http://cnc.crabdance.com:8400/static/

Pool Rate 295MH/s (37% DOA+orphan)
Peers 6 out, 5 in

From the "root" node at http://chn.p2pool.skralg.com:8109/static/

Pool rate: 293MH/s (36% DOA+orphan)
Peers: 4 out, 11 in

Hmm only getting half those figures. It was up over 400MH/s Pool rate 6 hours ago.
I am still running Version: 11.3-16-g104a596-dirty could that be a problems?



are you using https://github.com/skralg/p2pool-feathercoin ?

No, I think I am using the version from git clone https://github.com/chrda/p2pool-chncoin.git is that a problem?





then you are connected to blastbobs p2pool network, that github was also updated a couple hours ago with new network identifiers/ports, so you would have to update, however i was on that network before and sometimes payouts for my nodes miners were missing somehow, i think someone explained a couple posts before in this thread why this might be.

im just setting up another network to test now actually, bit fed up with the stuff out there so far Smiley
erk
hero member
Activity: 826
Merit: 500
I have seen the Pool Rate dropping over the last few hours, is that the same for everyone or am I loosing some BOOTSTRAP_ADDRS?

Pool rate: 142MH/s (29% DOA+orphan) Share difficulty: 0.105

I have not noticed that, e.g. the pool from the github code linked in the previous code is at the following values for me, taken from my node at http://cnc.crabdance.com:8400/static/

Pool Rate 295MH/s (37% DOA+orphan)
Peers 6 out, 5 in

From the "root" node at http://chn.p2pool.skralg.com:8109/static/

Pool rate: 293MH/s (36% DOA+orphan)
Peers: 4 out, 11 in

Hmm only getting half those figures. It was up over 400MH/s Pool rate 6 hours ago.
I am still running Version: 11.3-16-g104a596-dirty could that be a problems?



are you using https://github.com/skralg/p2pool-feathercoin ?

No, I think I am using the version from git clone https://github.com/chrda/p2pool-chncoin.git is that a problem?



full member
Activity: 147
Merit: 101
Datum.network - register for Pre-ICO
I have seen the Pool Rate dropping over the last few hours, is that the same for everyone or am I loosing some BOOTSTRAP_ADDRS?

Pool rate: 142MH/s (29% DOA+orphan) Share difficulty: 0.105

I have not noticed that, e.g. the pool from the github code linked in the previous code is at the following values for me, taken from my node at http://cnc.crabdance.com:8400/static/

Pool Rate 295MH/s (37% DOA+orphan)
Peers 6 out, 5 in

From the "root" node at http://chn.p2pool.skralg.com:8109/static/

Pool rate: 293MH/s (36% DOA+orphan)
Peers: 4 out, 11 in

Hmm only getting half those figures. It was up over 400MH/s Pool rate 6 hours ago.
I am still running Version: 11.3-16-g104a596-dirty could that be a problems?



are you using https://github.com/skralg/p2pool-feathercoin ?
erk
hero member
Activity: 826
Merit: 500
I have seen the Pool Rate dropping over the last few hours, is that the same for everyone or am I loosing some BOOTSTRAP_ADDRS?

Pool rate: 142MH/s (29% DOA+orphan) Share difficulty: 0.105

I have not noticed that, e.g. the pool from the github code linked in the previous code is at the following values for me, taken from my node at http://cnc.crabdance.com:8400/static/

Pool Rate 295MH/s (37% DOA+orphan)
Peers 6 out, 5 in

From the "root" node at http://chn.p2pool.skralg.com:8109/static/

Pool rate: 293MH/s (36% DOA+orphan)
Peers: 4 out, 11 in

Hmm only getting half those figures. It was up over 400MH/s Pool rate 6 hours ago.
I am still running Version: 11.3-16-g104a596-dirty could that be a problems?

full member
Activity: 147
Merit: 101
Datum.network - register for Pre-ICO
Hum should have been ~35 minutes. But it's quite possible to have bad luck like this.

If you are truly standalone :
- make sure nothing can connect to your node,
- it doesn't have any data to find peers from,
- it doesn't have any bootstrap seeds.

You can play with share_period and spread any way you want (you could mine solo connecting directly to your chncoind too, but p2pool's web interface, especially with the enhancements you can find on github, is far nicer).


Thanks for your insight!

All the above was correct, e.g. node was really standalone with no old peers (firewall blocked and clean codebase and me observing peers: 0), no bootstrap since i had removed that (ip in code up there was just a 2nd testnode running same params i had setup).

So maybe it was really bad bad bad luck, but still having such bad luck was probably not going to be acceptable for miners Smiley

I might still try again then with those optimized parameters on a separate node from this one.
hero member
Activity: 896
Merit: 1000
some minor thing that doesnt look right is
Code:
SUBSIDY_FUNC=lambda height: 88*100000000 >> (height + 1)//462528000

shouldnt it be? (two zeroes less?)

Code:
SUBSIDY_FUNC=lambda height: 88*100000000 >> (height + 1)//4625280

Hum, didn't check CHNCoin actual subsidy rule, but I suppose you are right. Shouldn't be a problem right now: this would generate invalid block only after the first block reward halving.
hero member
Activity: 896
Merit: 1000
someone PM'd me about the outage before as well, all I can say is sorry, i switched to another p2pool network where payouts hopefully works as intended, this is live now, after the switch was made the node never synced up properly, since I was afk I didnt notice until a couple hours later.

anyways, its working fine now, and paying out already!
care to share how to join this network ?

Im using the code from https://github.com/skralg/p2pool-feathercoin now, this will bootstrap to http://chn.p2pool.skralg.com:8109

SHARE_PERIOD and SPREAD are still badly chosen for CHNCoin. That won't make many miners happy...

YES, #$%@#, I setup my standalone node with SHARE_PERIOD=30 and SPREAD=120 (what some FeatherCoin P2Pools were using), however even with 40MH/s only 1 block was found in 3 hours, that could be extremly unlucky.

Hum should have been ~35 minutes. But it's quite possible to have bad luck like this.

If you are truly standalone :
- make sure nothing can connect to your node,
- it doesn't have any data to find peers from,
- it doesn't have any bootstrap seeds.

You can play with share_period and spread any way you want (you could mine solo connecting directly to your chncoind too, but p2pool's web interface, especially with the enhancements you can find on github, is far nicer).

But if you missed any of the points above hell will break lose : your node will not understand why its shares aren't accepted by the rest of the network and vice-versa. If it becomes overloaded trying to make heads from tails on a fast coin like CHNCoin you might easily generate orphans.
full member
Activity: 147
Merit: 101
Datum.network - register for Pre-ICO
someone PM'd me about the outage before as well, all I can say is sorry, i switched to another p2pool network where payouts hopefully works as intended, this is live now, after the switch was made the node never synced up properly, since I was afk I didnt notice until a couple hours later.

anyways, its working fine now, and paying out already!
care to share how to join this network ?

Im using the code from https://github.com/skralg/p2pool-feathercoin now, this will bootstrap to http://chn.p2pool.skralg.com:8109

SHARE_PERIOD and SPREAD are still badly chosen for CHNCoin. That won't make many miners happy...

YES, #$%@#, I setup my standalone node with SHARE_PERIOD=30 and SPREAD=120 (what some FeatherCoin P2Pools were using), however even with 40MH/s only 1 block was found in 3 hours, that could be extremly unlucky, but rather I think something was wrong, however I used the same code that worked fine connected to bob's network before, so not sure if changing SHARE_PERIOD and SPREAD too aggressively will cause blocks not to be found Sad

Do you know if its possible to set them to 30/120? Here is what I had tested (first tested with 30/120, then after no block found for 2.5 hours got cold feet and tried 5/120 thinking that long share_period might somehow affect finding blocks, probably not the case, but I dont know!):

p2pool/networks.py:
Code:
    
litecoin=math.Object(
        PARENT=networks.nets['litecoin'],
        SHARE_PERIOD=5, # seconds
        CHAIN_LENGTH=12*60*60//10, # shares
        REAL_CHAIN_LENGTH=12*60*60//10, # shares
        TARGET_LOOKBEHIND=200, # shares
        SPREAD=120, # blocks
        IDENTIFIER='4665617468657221'.decode('hex'),
        PREFIX='b131010ba6d4729a'.decode('hex'),
        P2P_PORT=12388,
        MIN_TARGET=0,
        MAX_TARGET=2**256//2**20 - 1,
        PERSIST=False,
        WORKER_PORT=8800,
        BOOTSTRAP_ADDRS='42.2.216.54'.split(' '),
        ANNOUNCE_CHANNEL='#p2pool-alt',
        VERSION_CHECK=lambda v: True,
),

p2pool/bitcoin/networks.py:
Code:
    litecoin=math.Object(
        P2P_PREFIX='fbc0b6db'.decode('hex'),
        P2P_PORT=8106,
        ADDRESS_VERSION=28,
        RPC_PORT=8108,
        RPC_CHECK=defer.inlineCallbacks(lambda bitcoind: defer.returnValue(
            'chncoinaddress' in (yield bitcoind.rpc_help()) and
            not (yield bitcoind.rpc_getinfo())['testnet']
        )),
        SUBSIDY_FUNC=lambda height: 88*100000000 >> (height + 1)//462528000,
        POW_FUNC=lambda data: pack.IntType(256).unpack(__import__('ltc_scrypt').getPoWHash(data)),
        BLOCK_PERIOD=60, # s
        SYMBOL='CNC',
        CONF_FILE_FUNC=lambda: os.path.join(os.path.join(os.environ['APPDATA'], 'chncoin') if platform.system() == 'Windows' else os.path.expanduser('~/Library/Application Support/chncoin/') if platform.system() == 'Darwin' else os.path.expanduser('~/.chncoin'), 'chncoin.conf'),
        BLOCK_EXPLORER_URL_PREFIX='http://cnc.cryptocoinexplorer.com/block/',
        ADDRESS_EXPLORER_URL_PREFIX='http://cnc.cryptocoinexplorer.com/address/',
        SANE_TARGET_RANGE=(2**256//1000000000 - 1, 2**256//1000 - 1),
        DUMB_SCRYPT_DIFF=2**16,


some minor thing that doesnt look right is
Code:
SUBSIDY_FUNC=lambda height: 88*100000000 >> (height + 1)//462528000

shouldnt it be? (two zeroes less?)

Code:
SUBSIDY_FUNC=lambda height: 88*100000000 >> (height + 1)//4625280
Pages:
Jump to: