Pages:
Author

Topic: Finding p2pool networks.py values for new altcoins - page 7. (Read 38034 times)

legendary
Activity: 1270
Merit: 1000
I forked P2Pool release 13.1 and added Digitalcoin, Worldcoin, and Craftcoin here:

https://github.com/CartmanSPC/p2pool
sr. member
Activity: 434
Merit: 250
hi again ... ok i am trying to setup a fastcoin pool ....  here are my settings..


Code:
fastcoin=math.Object(
        PARENT=networks.nets['fastcoin'],
        SHARE_PERIOD=9,
        CHAIN_LENGTH=24*60*60//10,
        REAL_CHAIN_LENGTH=24*60*60//10,
        TARGET_LOOKBEHIND=200,
        SPREAD=150,
        IDENTIFIER=''.decode('hex'),
        PREFIX=''.decode('hex'),
        P2P_PORT=50010,
        MIN_TARGET=0,
        MAX_TARGET=2**256//2**20 - 1,
        PERSIST=False,
        WORKER_PORT=19328,
        BOOTSTRAP_ADDRS=''.split(' '),
        ANNOUNCE_CHANNEL='#p2pool-alt',
        VERSION_CHECK=lambda v: True,
    ),

Code:
fastcoin=math.Object(
        P2P_PREFIX='fbc0b6db'.decode('hex'),
        P2P_PORT=9526,
        ADDRESS_VERSION=96,
        RPC_PORT=9527,
        RPC_CHECK=defer.inlineCallbacks(lambda bitcoind: defer.returnValue(
            'fastcoinaddress' in (yield bitcoind.rpc_help()) and
            not (yield bitcoind.rpc_getinfo())['testnet']
        )),
        SUBSIDY_FUNC=lambda height: 32*100000000 >> (height + 1)//2592000,
        POW_FUNC=lambda data: pack.IntType(256).unpack(__import__('ltc_scrypt').getPoWHash(data)),
        BLOCK_PERIOD=150,
        SYMBOL='FSC',
        CONF_FILE_FUNC=lambda: os.path.join(os.path.join(os.environ['APPDATA'], 'Fastcoin') if platform.system() == 'Windows' else os.path.expanduser('~/Library/Application Support/fastcoin/') if platform.system() == 'Darwin' else os.path.expanduser('~/.fastcoin'), 'fastcoin.conf'),
        BLOCK_EXPLORER_URL_PREFIX='',
        ADDRESS_EXPLORER_URL_PREFIX='',
        SANE_TARGET_RANGE=(2**256//1000000000 - 1, 2**256//1000 - 1),
        DUMB_SCRYPT_DIFF=2**16,
    ),

but i always get this error when i try to run on python

Code:
2013-06-14 19:12:36.783384 > Traceback (most recent call last):
2013-06-14 19:12:36.783529 >   File "run_p2pool.py", line 5, in
2013-06-14 19:12:36.783662 >     main.run()
2013-06-14 19:12:36.783774 >   File "/root/p2pool-fsc/p2pool/main.py", line 576, in run
2013-06-14 19:12:36.783888 >     reactor.run()
2013-06-14 19:12:36.784061 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 1169, in run
2013-06-14 19:12:36.784176 >     self.mainLoop()
2013-06-14 19:12:36.784290 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 1178, in mainLoop
2013-06-14 19:12:36.784400 >     self.runUntilCurrent()
2013-06-14 19:12:36.784511 > --- ---
2013-06-14 19:12:36.784659 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 800, in runUntilCurrent
2013-06-14 19:12:36.784777 >     call.func(*call.args, **call.kw)
2013-06-14 19:12:36.784892 >   File "/root/p2pool-fsc/p2pool/bitcoin/stratum.py", line 35, in _send_work
2013-06-14 19:12:36.785004 >     x, got_response = self.wb.get_work(*self.wb.preprocess_request('' if self.username is None else self.username))
2013-06-14 19:12:36.785113 >   File "/root/p2pool-fsc/p2pool/bitcoin/worker_interface.py", line 122, in get_work
2013-06-14 19:12:36.785223 >     x, handler = self._inner.get_work(*args)
2013-06-14 19:12:36.785333 >   File "/root/p2pool-fsc/p2pool/work.py", line 238, in get_work
2013-06-14 19:12:36.785443 >     base_subsidy=self.node.net.PARENT.SUBSIDY_FUNC(self.current_work.value['height']),
2013-06-14 19:12:36.785549 >   File "/root/p2pool-fsc/p2pool/data.py", line 197, in generate_transaction
2013-06-14 19:12:36.785660 >     script='\x24' + cls.get_ref_hash(net, share_info, ref_merkle_link) + pack.IntType(32).pack(last_txout_nonce),
2013-06-14 19:12:36.785772 >   File "/root/p2pool-fsc/p2pool/data.py", line 221, in get_ref_hash
2013-06-14 19:12:36.785881 >     share_info=share_info,
2013-06-14 19:12:36.785977 >   File "/root/p2pool-fsc/p2pool/util/pack.py", line 72, in pack
2013-06-14 19:12:36.786191 >     data = self._pack(obj)
2013-06-14 19:12:36.787330 >   File "/root/p2pool-fsc/p2pool/util/pack.py", line 52, in _pack
2013-06-14 19:12:36.787494 >     f = self.write(None, obj)
2013-06-14 19:12:36.787626 >   File "/root/p2pool-fsc/p2pool/util/pack.py", line 299, in write
2013-06-14 19:12:36.787757 >     file = type_.write(file, item[key])
2013-06-14 19:12:36.787869 >   File "/root/p2pool-fsc/p2pool/util/pack.py", line 325, in write
2013-06-14 19:12:36.787976 >     raise ValueError('incorrect length item!')
2013-06-14 19:12:36.788087 > exceptions.ValueError: incorrect length item!

i hav setted up the pass and username. on python running code. but i always get this one

any ideas ?



It doesn't address your errors but I noticed that you use for Fastcoin symbol FSC; it should be FST from my point of view.

https://bitcointalksearch.org/topic/ann-fastcoin-fst-the-fastest-coin-so-far-in-the-market-is-launched-218852

SYMBOL='FST',

Block period is 12s, isn't it?

BLOCK_PERIOD=12,

Your subsidy is not correct, it is not critical...

SUBSIDY_FUNC=lambda height: 32*100000000 >> (height)//2592000,

And this is not correct and could be troublemaker:

IDENTIFIER=''.decode('hex'),
PREFIX=''.decode('hex'),


I was able to track down that error, and  made some progress setting the identifiers to something other than '', something like:
        IDENTIFIER='adc586a5dc685cad'.decode('hex'),
        PREFIX='ef39ae959feaf397'.decode('hex'),
These are random chars.. but now the error is gone, and the node seems to work fine. I dont know if this is the same issue you have and im pretty sure this identifiers will make this p2pool node unreachable to other nodes.. Im solo mining with this for my farm, so it wont bother to me. On another coin not fastcoin though..

Hope this helps !
sr. member
Activity: 434
Merit: 250
A lot of coins lately do not work out the block reward by simply dividing an original reward by a number of blocks, or like in bitcoin halve if every four years, so i expect for example the coins that use hashes of previous blocks to "randomly' decide the block reward (superblocks, lucky blocks, golden blocks) the python function for determining the block reward would need to do that exact same pseudorandom number calculations to match correctly the rewards the coin actually gives out?

Has that led to the coins that have lucky blocks being less likely to have p2pool pools due to p2pool coders maybe not wanting to correctly figure out those "random" rewards in python?

or maybe even has it led to p2pool pools for such coins tending to not figure out rewards correctly?

-MarkM-

Exactly, i think coins with random blocks must have their SUBSIDY_FUNC with same algorithm that the coind uses. But i cannot calculate the random part with p2pool, because it wont be the same (obviously) as the value calculated by the function in coind. So i can set it to always the normal block subsidy, but thats not correct.
Anyone know how luckycoin p2pool addresses this?? Ive seen the code, and lambda function states a fixed amount..
PSL
member
Activity: 166
Merit: 10
It doesn't address your errors but I noticed that you use for Fastcoin symbol FSC; it should be FST from my point of view.

https://bitcointalksearch.org/topic/ann-fastcoin-fst-the-fastest-coin-so-far-in-the-market-is-launched-218852

SYMBOL='FST',

Block period is 12s, isn't it?

BLOCK_PERIOD=12,

Your subsidy is not correct, it is not critical...

SUBSIDY_FUNC=lambda height: 32*100000000 >> (height)//2592000,

And this is not correct and could be troublemaker:

IDENTIFIER=''.decode('hex'),
PREFIX=''.decode('hex'),
legendary
Activity: 2940
Merit: 1090
A lot of coins lately do not work out the block reward by simply dividing an original reward by a number of blocks, or like in bitcoin halve if every four years, so i expect for example the coins that use hashes of previous blocks to "randomly' decide the block reward (superblocks, lucky blocks, golden blocks) the python function for determining the block reward would need to do that exact same pseudorandom number calculations to match correctly the rewards the coin actually gives out?

Has that led to the coins that have lucky blocks being less likely to have p2pool pools due to p2pool coders maybe not wanting to correctly figure out those "random" rewards in python?

or maybe even has it led to p2pool pools for such coins tending to not figure out rewards correctly?

-MarkM-
sr. member
Activity: 434
Merit: 250
hi again ... ok i am trying to setup a fastcoin pool ....  here are my settings..
Code:
fastcoin=math.Object(
        PARENT=networks.nets['fastcoin'],
        SHARE_PERIOD=9,
        CHAIN_LENGTH=24*60*60//10,
        REAL_CHAIN_LENGTH=24*60*60//10,
        TARGET_LOOKBEHIND=200,
        SPREAD=150,
        IDENTIFIER=''.decode('hex'),
        PREFIX=''.decode('hex'),
        P2P_PORT=50010,
        MIN_TARGET=0,
        MAX_TARGET=2**256//2**20 - 1,
        PERSIST=False,
        WORKER_PORT=19328,
        BOOTSTRAP_ADDRS=''.split(' '),
        ANNOUNCE_CHANNEL='#p2pool-alt',
        VERSION_CHECK=lambda v: True,
    ),

Code:
fastcoin=math.Object(
        P2P_PREFIX='fbc0b6db'.decode('hex'),
        P2P_PORT=9526,
        ADDRESS_VERSION=96,
        RPC_PORT=9527,
        RPC_CHECK=defer.inlineCallbacks(lambda bitcoind: defer.returnValue(
            'fastcoinaddress' in (yield bitcoind.rpc_help()) and
            not (yield bitcoind.rpc_getinfo())['testnet']
        )),
        SUBSIDY_FUNC=lambda height: 32*100000000 >> (height + 1)//2592000,
        POW_FUNC=lambda data: pack.IntType(256).unpack(__import__('ltc_scrypt').getPoWHash(data)),
        BLOCK_PERIOD=150,
        SYMBOL='FSC',
        CONF_FILE_FUNC=lambda: os.path.join(os.path.join(os.environ['APPDATA'], 'Fastcoin') if platform.system() == 'Windows' else os.path.expanduser('~/Library/Application Support/fastcoin/') if platform.system() == 'Darwin' else os.path.expanduser('~/.fastcoin'), 'fastcoin.conf'),
        BLOCK_EXPLORER_URL_PREFIX='',
        ADDRESS_EXPLORER_URL_PREFIX='',
        SANE_TARGET_RANGE=(2**256//1000000000 - 1, 2**256//1000 - 1),
        DUMB_SCRYPT_DIFF=2**16,
    ),

but i always get this error when i try to run on python

Code:
2013-06-14 19:12:36.783384 > Traceback (most recent call last):
2013-06-14 19:12:36.783529 >   File "run_p2pool.py", line 5, in
2013-06-14 19:12:36.783662 >     main.run()
2013-06-14 19:12:36.783774 >   File "/root/p2pool-fsc/p2pool/main.py", line 576, in run
2013-06-14 19:12:36.783888 >     reactor.run()
2013-06-14 19:12:36.784061 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 1169, in run
2013-06-14 19:12:36.784176 >     self.mainLoop()
2013-06-14 19:12:36.784290 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 1178, in mainLoop
2013-06-14 19:12:36.784400 >     self.runUntilCurrent()
2013-06-14 19:12:36.784511 > --- ---
2013-06-14 19:12:36.784659 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 800, in runUntilCurrent
2013-06-14 19:12:36.784777 >     call.func(*call.args, **call.kw)
2013-06-14 19:12:36.784892 >   File "/root/p2pool-fsc/p2pool/bitcoin/stratum.py", line 35, in _send_work
2013-06-14 19:12:36.785004 >     x, got_response = self.wb.get_work(*self.wb.preprocess_request('' if self.username is None else self.username))
2013-06-14 19:12:36.785113 >   File "/root/p2pool-fsc/p2pool/bitcoin/worker_interface.py", line 122, in get_work
2013-06-14 19:12:36.785223 >     x, handler = self._inner.get_work(*args)
2013-06-14 19:12:36.785333 >   File "/root/p2pool-fsc/p2pool/work.py", line 238, in get_work
2013-06-14 19:12:36.785443 >     base_subsidy=self.node.net.PARENT.SUBSIDY_FUNC(self.current_work.value['height']),
2013-06-14 19:12:36.785549 >   File "/root/p2pool-fsc/p2pool/data.py", line 197, in generate_transaction
2013-06-14 19:12:36.785660 >     script='\x24' + cls.get_ref_hash(net, share_info, ref_merkle_link) + pack.IntType(32).pack(last_txout_nonce),
2013-06-14 19:12:36.785772 >   File "/root/p2pool-fsc/p2pool/data.py", line 221, in get_ref_hash
2013-06-14 19:12:36.785881 >     share_info=share_info,
2013-06-14 19:12:36.785977 >   File "/root/p2pool-fsc/p2pool/util/pack.py", line 72, in pack
2013-06-14 19:12:36.786191 >     data = self._pack(obj)
2013-06-14 19:12:36.787330 >   File "/root/p2pool-fsc/p2pool/util/pack.py", line 52, in _pack
2013-06-14 19:12:36.787494 >     f = self.write(None, obj)
2013-06-14 19:12:36.787626 >   File "/root/p2pool-fsc/p2pool/util/pack.py", line 299, in write
2013-06-14 19:12:36.787757 >     file = type_.write(file, item[key])
2013-06-14 19:12:36.787869 >   File "/root/p2pool-fsc/p2pool/util/pack.py", line 325, in write
2013-06-14 19:12:36.787976 >     raise ValueError('incorrect length item!')
2013-06-14 19:12:36.788087 > exceptions.ValueError: incorrect length item!

i hav setted up the pass and username. on python running code. but i always get this one

any ideas ?

Hi napoleon, have you got it to work? Im having the same errors...
Thanks!
sr. member
Activity: 266
Merit: 250
hi again ... ok i am trying to setup a fastcoin pool ....  here are my settings..


Code:
fastcoin=math.Object(
        PARENT=networks.nets['fastcoin'],
        SHARE_PERIOD=9,
        CHAIN_LENGTH=24*60*60//10,
        REAL_CHAIN_LENGTH=24*60*60//10,
        TARGET_LOOKBEHIND=200,
        SPREAD=150,
        IDENTIFIER=''.decode('hex'),
        PREFIX=''.decode('hex'),
        P2P_PORT=50010,
        MIN_TARGET=0,
        MAX_TARGET=2**256//2**20 - 1,
        PERSIST=False,
        WORKER_PORT=19328,
        BOOTSTRAP_ADDRS=''.split(' '),
        ANNOUNCE_CHANNEL='#p2pool-alt',
        VERSION_CHECK=lambda v: True,
    ),

Code:
fastcoin=math.Object(
        P2P_PREFIX='fbc0b6db'.decode('hex'),
        P2P_PORT=9526,
        ADDRESS_VERSION=96,
        RPC_PORT=9527,
        RPC_CHECK=defer.inlineCallbacks(lambda bitcoind: defer.returnValue(
            'fastcoinaddress' in (yield bitcoind.rpc_help()) and
            not (yield bitcoind.rpc_getinfo())['testnet']
        )),
        SUBSIDY_FUNC=lambda height: 32*100000000 >> (height + 1)//2592000,
        POW_FUNC=lambda data: pack.IntType(256).unpack(__import__('ltc_scrypt').getPoWHash(data)),
        BLOCK_PERIOD=150,
        SYMBOL='FSC',
        CONF_FILE_FUNC=lambda: os.path.join(os.path.join(os.environ['APPDATA'], 'Fastcoin') if platform.system() == 'Windows' else os.path.expanduser('~/Library/Application Support/fastcoin/') if platform.system() == 'Darwin' else os.path.expanduser('~/.fastcoin'), 'fastcoin.conf'),
        BLOCK_EXPLORER_URL_PREFIX='',
        ADDRESS_EXPLORER_URL_PREFIX='',
        SANE_TARGET_RANGE=(2**256//1000000000 - 1, 2**256//1000 - 1),
        DUMB_SCRYPT_DIFF=2**16,
    ),

but i always get this error when i try to run on python

Code:
2013-06-14 19:12:36.783384 > Traceback (most recent call last):
2013-06-14 19:12:36.783529 >   File "run_p2pool.py", line 5, in
2013-06-14 19:12:36.783662 >     main.run()
2013-06-14 19:12:36.783774 >   File "/root/p2pool-fsc/p2pool/main.py", line 576, in run
2013-06-14 19:12:36.783888 >     reactor.run()
2013-06-14 19:12:36.784061 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 1169, in run
2013-06-14 19:12:36.784176 >     self.mainLoop()
2013-06-14 19:12:36.784290 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 1178, in mainLoop
2013-06-14 19:12:36.784400 >     self.runUntilCurrent()
2013-06-14 19:12:36.784511 > --- ---
2013-06-14 19:12:36.784659 >   File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 800, in runUntilCurrent
2013-06-14 19:12:36.784777 >     call.func(*call.args, **call.kw)
2013-06-14 19:12:36.784892 >   File "/root/p2pool-fsc/p2pool/bitcoin/stratum.py", line 35, in _send_work
2013-06-14 19:12:36.785004 >     x, got_response = self.wb.get_work(*self.wb.preprocess_request('' if self.username is None else self.username))
2013-06-14 19:12:36.785113 >   File "/root/p2pool-fsc/p2pool/bitcoin/worker_interface.py", line 122, in get_work
2013-06-14 19:12:36.785223 >     x, handler = self._inner.get_work(*args)
2013-06-14 19:12:36.785333 >   File "/root/p2pool-fsc/p2pool/work.py", line 238, in get_work
2013-06-14 19:12:36.785443 >     base_subsidy=self.node.net.PARENT.SUBSIDY_FUNC(self.current_work.value['height']),
2013-06-14 19:12:36.785549 >   File "/root/p2pool-fsc/p2pool/data.py", line 197, in generate_transaction
2013-06-14 19:12:36.785660 >     script='\x24' + cls.get_ref_hash(net, share_info, ref_merkle_link) + pack.IntType(32).pack(last_txout_nonce),
2013-06-14 19:12:36.785772 >   File "/root/p2pool-fsc/p2pool/data.py", line 221, in get_ref_hash
2013-06-14 19:12:36.785881 >     share_info=share_info,
2013-06-14 19:12:36.785977 >   File "/root/p2pool-fsc/p2pool/util/pack.py", line 72, in pack
2013-06-14 19:12:36.786191 >     data = self._pack(obj)
2013-06-14 19:12:36.787330 >   File "/root/p2pool-fsc/p2pool/util/pack.py", line 52, in _pack
2013-06-14 19:12:36.787494 >     f = self.write(None, obj)
2013-06-14 19:12:36.787626 >   File "/root/p2pool-fsc/p2pool/util/pack.py", line 299, in write
2013-06-14 19:12:36.787757 >     file = type_.write(file, item[key])
2013-06-14 19:12:36.787869 >   File "/root/p2pool-fsc/p2pool/util/pack.py", line 325, in write
2013-06-14 19:12:36.787976 >     raise ValueError('incorrect length item!')
2013-06-14 19:12:36.788087 > exceptions.ValueError: incorrect length item!

i hav setted up the pass and username. on python running code. but i always get this one

any ideas ?


sr. member
Activity: 287
Merit: 250
For future reference, you can find the P2P_PORT in the coin's source code in the protocol.h file, it's the 2nd value after GetDefaultPort.

You can find RPC_PORT in the source code in the bitcoinrpc.cpp file, look for GetArg (-rpcport, xxxx), where xxxx is the port.

I'm talking about the values you would specify in the bnetworks.py file.





Just to confirm what I *think* I know....

These values can be specified in the *.conf file as well can't they?  (To match bnetwrks.py)
That is my understanding, yes.  The above just lets you find the defaults if the coin dev doesn't accurately document the default ports, which does happen.
member
Activity: 84
Merit: 10
no idea... i found the problem with that .... it wants that in linux .conf file

ipcallowip=127.0.0.1
not
rpcconnect=127.0.0.1

now i am getting a huge nubmer or errors that i can't find... i make everything like i do to most coin pools. that means:

i find the address for PUBLIC ADDRESS from base58.h
i find height or something like that from  nSubsidy >>= (nHeight / 8400000); from main.cpp
i change the port and rpc port at networks.py
i change the worker port and the other port that connect the pools.
i delete the IDENTIFY AND PREFIX i leave them like that (don't couse me any problems for solo pools)
Code:
IDENTIFIER=''.decode('hex'),
        PREFIX=''.decode('hex'),

i change the helper.py with or 'netowrkname' like this

Code:
if 'lite' in net.NAME or 'feather' in net.NAME or 'chn' in net.NAME or 'franko' in net.NAME or 'digital' in net.NAME or 'worldcoin' in net.NAME:

what else. and i run with python. (i create the screen first)

but then let's say for fastcoin i get like 2 pages errors .....

i also hav no idea what this is

Code:
CHAIN_LENGTH=24*60*60//10, # shares
REAL_CHAIN_LENGTH=24*60*60//10, # shares
SHARE_PERIOD=10, # seconds

and on the other networks.py this one and how i can translate it

Code:
P2P_PREFIX='f9beb4d9'.decode('hex'),



The P2P_PREFIX was explained by Kyune here:



I think I may have figured this out.  I had been bumping into the same problem (stalling at the P2P connection) on some coins but not others.  I finally realized I was wrong in an initial assumption...the P2P_PREFIX setting in bitcoin/networks.py is in fact a coin-specific setting -- which is logical, as the other settings in that file are coin-specific as well.   In fact, it looks like it is basically the "magic value" or "magic number" referred to in https://en.bitcoin.it/wiki/Protocol_specification, and after poking around in the code I think you can find it in main.cpp at pchMessageStart[4]=...  Using this specific value as the P2P_PREFIX fixed the problem for me.

So, for example, I haven't ever installed Dragoncoin myself, but looking quickly at the relevant line in main.cpp:

Code:
unsigned char pchMessageStart[4] = { 0xfc, 0xd9, 0xb7, 0xdd };

Thus, for Dragoncoin, try setting

Code:
P2P_PREFIX='fcd9b7dd'.decode('hex'),

and let us know if that gets you past stalling at the P2P connection.

Hope this is helpful.


I can't really help with the chain length as it is confusing to me too.
sr. member
Activity: 266
Merit: 250
no idea... i found the problem with that .... it wants that in linux .conf file

ipcallowip=127.0.0.1
not
rpcconnect=127.0.0.1

now i am getting a huge nubmer or errors that i can't find... i make everything like i do to most coin pools. that means:

i find the address for PUBLIC ADDRESS from base58.h
i find height or something like that from  nSubsidy >>= (nHeight / 8400000); from main.cpp
i change the port and rpc port at networks.py
i change the worker port and the other port that connect the pools.
i delete the IDENTIFY AND PREFIX i leave them like that (don't couse me any problems for solo pools)
Code:
IDENTIFIER=''.decode('hex'),
        PREFIX=''.decode('hex'),

i change the helper.py with or 'netowrkname' like this

Code:
if 'lite' in net.NAME or 'feather' in net.NAME or 'chn' in net.NAME or 'franko' in net.NAME or 'digital' in net.NAME or 'worldcoin' in net.NAME:

what else. and i run with python. (i create the screen first)

but then let's say for fastcoin i get like 2 pages errors .....

i also hav no idea what this is

Code:
CHAIN_LENGTH=24*60*60//10, # shares
REAL_CHAIN_LENGTH=24*60*60//10, # shares
SHARE_PERIOD=10, # seconds

and on the other networks.py this one and how i can translate it

Code:
P2P_PREFIX='f9beb4d9'.decode('hex'),
member
Activity: 84
Merit: 10
For future reference, you can find the P2P_PORT in the coin's source code in the protocol.h file, it's the 2nd value after GetDefaultPort.

You can find RPC_PORT in the source code in the bitcoinrpc.cpp file, look for GetArg (-rpcport, xxxx), where xxxx is the port.

I'm talking about the values you would specify in the bnetworks.py file.





Just to confirm what I *think* I know....

These values can be specified in the *.conf file as well can't they?  (To match bnetwrks.py)
sr. member
Activity: 287
Merit: 250
For future reference, you can find the P2P_PORT in the coin's source code in the protocol.h file, it's the 2nd value after GetDefaultPort.

You can find RPC_PORT in the source code in the bitcoinrpc.cpp file, look for GetArg (-rpcport, xxxx), where xxxx is the port.

I'm talking about the values you would specify in the bnetworks.py file.



legendary
Activity: 1270
Merit: 1000
Check failed! Make sure that you're connected to the right bitcoind with --bitcoind-rpc-port!

the ports are correct. any ideas ?

I imagine you are trying to do a pool for HyperCoin? The devs messed up on the ports being used. To make matters worse the original post for the announcement had the wrong ports as well. In that thread I pointed it out. They graciously gave me a donation Smiley

Look up the announcement thread for the port information. I forget off the top of my head but it is there. The default ports were something like 5 digits for one and 4 for the other.

sr. member
Activity: 266
Merit: 250
 Check failed! Make sure that you're connected to the right bitcoind with --bitcoind-rpc-port!

the ports are correct. any ideas ?
sr. member
Activity: 266
Merit: 250
they are correct and working cartman... thx for that info it was great help for the pools Cheesy

legendary
Activity: 1270
Merit: 1000
ok guys for SPREAD this is the corect settings.


bitcoin SPREAD=3 block every 600 seconds           Baseline
litecoin SPREAD=12 block every 150 seconds         600/150=4       4x3=12
bbqcoin SPREAD=30 block every 60 seconds          600/60=10       10x3=30
casinocoin SPREAD=60 block every 30 seconds      600/30=20        20x3=60
digitalcoin SPREAD=90 block every 20 seconds       600/20=30       30x3=90 (old spec)
digitalcoin SPREAD=45 block every 40 seconds       600/40=15       15x3=45  (new spec)
worldcoin SPREAD=120 block every 15 seconds      600/15=40       40x3=120 (old spec)
worldcoin SPREAD=60 block every 30 seconds       600/30=20        20x3=60  (new spec)

sa i found out in one post here and there.


anyone found anything for HYC?

I posted those settings from research but do not know if my assumptions are correct.

I use them for my pools and they seem to work correctly but it's hard to say what would happen if a bunch of other p2pools decided to connect. Brought up some other p2pools to simulate other pools connecting but without a lot of hash rate at the other nodes my results were promising but inconclusive.
sr. member
Activity: 266
Merit: 250
hi again guys.

i hav made a pool for WDC it's working perfecty for some days now. but still i hav a small problem. i get like 10% DOA and i am really pissed off by that.

this is the code i hav. i need to change anything couse i think i hav made a mistake somewhere

Code:
worldcoin=math.Object(
        PARENT=networks.nets['worldcoin'],
        SHARE_PERIOD=15,
        CHAIN_LENGTH=24*60*60//10,
        REAL_CHAIN_LENGTH=24*60*60//10,
        TARGET_LOOKBEHIND=200,
        SPREAD=30,
        IDENTIFIER='e021a7b8c602421f'.decode('hex'),
        PREFIX='e280193ae6b8617b'.decode('hex'),
        P2P_PORT=5001,
        MIN_TARGET=0,
        MAX_TARGET=2**256//2**20 - 1,
        PERSIST=False,
        WORKER_PORT=19335,
        BOOTSTRAP_ADDRS=''.split(' '),
        ANNOUNCE_CHANNEL='#p2pool-worldcoin',
        VERSION_CHECK=lambda v: True,
    ),
full member
Activity: 223
Merit: 100
Birb.co Bounty and Airdrop Manager
ok how did you found this couse i was trying to find this for days.

also what about nSubsidy. at the code it should be like nSubsidy >>= (nHeight number.) but in this coin it has 25*coins and something under it. alll the rest are the sane. somehow

It seems that subsidy never halves (until reach max money), then:
Code:
        SUBSIDY_FUNC=lambda height: 25*10000000,

You can find the 'xcoinaddress' string in src/rpcdump.cpp, searching 'dumpprivkey <'

sr. member
Activity: 266
Merit: 250
ok how did you found this couse i was trying to find this for days.

also what about nSubsidy. at the code it should be like nSubsidy >>= (nHeight number.) but in this coin it has 25*coins and something under it. alll the rest are the sane. somehow
Pages:
Jump to: