Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions p2pool/bitcoin/networks/mazacoin_testnet.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
import os
import platform

from twisted.internet import defer

from .. import data, helper
from p2pool.util import pack


P2P_PREFIX = '05fea901'.decode('hex')
P2P_PORT = 11835
ADDRESS_VERSION = 88
RPC_PORT = 11832
RPC_CHECK = defer.inlineCallbacks(lambda bitcoind: defer.returnValue(
(yield helper.check_genesis_block(bitcoind, '0x000003ae7f631de18a457fa4fa078e6fa8aff38e258458f8189810de5d62cede')) and
(yield bitcoind.rpc_getinfo())['testnet']
))
SUBSIDY_FUNC = lambda height: 1000*100000000 >> (height + 1)//950000
POW_FUNC = data.hash256
BLOCK_PERIOD = 120 # s
SYMBOL = 'testMAZA'
CONF_FILE_FUNC = lambda: os.path.join(os.path.join(os.environ['APPDATA'], 'Mazacoin') if platform.system() == 'Windows' else os.path.expanduser('~/Library/Application Support/Mazacoin/') if platform.system() == 'Darwin' else os.path.expanduser('~/.mazacoin'), 'mazacoin.conf')
BLOCK_EXPLORER_URL_PREFIX = 'https://mazacha.in/testnet/block/'
ADDRESS_EXPLORER_URL_PREFIX = 'https://mazacha.in/testnet/address/'
TX_EXPLORER_URL_PREFIX = 'https://mazacha.in/testnet/tx/'
SANE_TARGET_RANGE = (2**256//2**32//1000000 - 1, 2**256//2**32 - 1)
DUMB_SCRYPT_DIFF = 1
DUST_THRESHOLD = 0.001e8
2 changes: 1 addition & 1 deletion p2pool/networks/mazacoin.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
MAX_TARGET = 2**256//2**40 - 1
PERSIST = False
WORKER_PORT = 14477
BOOTSTRAP_ADDRS = 'p2pool.maza.club p2pool-2.maza.club'.split(' ')
BOOTSTRAP_ADDRS = 'p2pool1.maza.club p2pool2.maza.club'.split(' ')
ANNOUNCE_CHANNEL = '#mazacoin-p2pool'
VERSION_CHECK= lambda v: True
24 changes: 24 additions & 0 deletions p2pool/networks/mazacoin_testnet.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
from p2pool.bitcoin import networks

# CHAIN_LENGTH = number of shares back client keeps
# REAL_CHAIN_LENGTH = maximum number of shares back client uses to compute payout
# REAL_CHAIN_LENGTH must always be <= CHAIN_LENGTH
# REAL_CHAIN_LENGTH must be changed in sync with all other clients
# changes can be done by changing one, then the other

PARENT = networks.nets['mazacoin_testnet']
SHARE_PERIOD = 30 # seconds between pool shares
CHAIN_LENGTH = 24*60*60//10 # shares
REAL_CHAIN_LENGTH = 24*60*60//10 # shares
TARGET_LOOKBEHIND = 7 # shares
SPREAD = 25 # blocks
IDENTIFIER = '0007d1a69c84e7e1'.decode('hex')
PREFIX = '000291a3e8c084d2'.decode('hex')
P2P_PORT = 13376
MIN_TARGET = 0
MAX_TARGET = 2**256//2**40 - 1
PERSIST = False
WORKER_PORT = 13377
BOOTSTRAP_ADDRS = 'p2pool-test1.maza.club p2pool-test2.maza.club'.split(' ')
ANNOUNCE_CHANNEL = '#mazacoin-p2pool'
VERSION_CHECK= lambda v: True