Does anyone know where I can get the P2Pool source for Digitalcoin? I'd like to run my own P2Pool locally (For myself to mine on, not as a public pool).
If it's not available, could one of the owners that are running a P2Pool share their source?
I would be very grateful. Thanks!
Hello,
You'd have to use the regular P2Pool source and compile the digitalcoind daemon.
p2pool git:
https://github.com/forrestv/p2poolnetworks.py add:
digital=math.Object(
PARENT=networks.nets['digital'],
SHARE_PERIOD=15, # seconds target spacing
CHAIN_LENGTH=24*60*60//10, # shares
REAL_CHAIN_LENGTH=24*60*60//10, # shares
TARGET_LOOKBEHIND=200, # shares coinbase maturity
SPREAD=30, # blocks
IDENTIFIER='be43F6b8c6927210'.decode('hex'),
PREFIX='b587193ba6d4749a'.decode('hex'),
P2P_PORT=5477,
MIN_TARGET=0,
MAX_TARGET=2**256//2**20 - 1,
PERSIST=False,
WORKER_PORT=9500,
BOOTSTRAP_ADDRS=''.split(' '),
ANNOUNCE_CHANNEL='#p2pool-alt',
VERSION_CHECK=lambda v: True,
)
bitcoin/networks.py add:
digital=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: 1*10000000 >> (height + 1)//1080000,
POW_FUNC=lambda data: pack.IntType(256).unpack(__import__('ltc_scrypt').getPoWHash(data)),
BLOCK_PERIOD=30, # s targetspacing
SYMBOL='DGC',
CONF_FILE_FUNC=lambda: os.path.join(os.path.join(os.environ['APPDATA'], 'franko') if platform.system() == 'Windows' else os.path.expanduser('~/Library/Application Support/Doubloons/') if platform.system() == 'Darwin' else os.path.expanduser('~/.digitalcoin'), 'digitalcoin.conf'),
BLOCK_EXPLORER_URL_PREFIX='
http://dgc.p2pool.nl/block/',
ADDRESS_EXPLORER_URL_PREFIX='
http://dgc.p2pool.nl/address/',
SANE_TARGET_RANGE=(2**256//100000000 - 1, 2**256//1000 - 1),
DUMB_SCRYPT_DIFF=2**16,
)