forked from p2pool/p2pool
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import os | ||
import platform | ||
|
||
from twisted.internet import defer | ||
|
||
from .. import data, helper | ||
from p2pool.util import pack | ||
|
||
|
||
P2P_PREFIX = 'fabfb5da'.decode('hex') | ||
P2P_PORT = 18444 | ||
ADDRESS_VERSION = 111 | ||
RPC_PORT = 28332 | ||
RPC_CHECK = defer.inlineCallbacks(lambda bitcoind: defer.returnValue( | ||
'bitcoinaddress' in (yield bitcoind.rpc_help()) | ||
)) | ||
SUBSIDY_FUNC = lambda height: 50*100000000 >> (height + 1)//150 | ||
POW_FUNC = data.hash256 | ||
BLOCK_PERIOD = 600 # s | ||
SYMBOL = 'rBTC' | ||
CONF_FILE_FUNC = lambda: os.path.join(os.path.join(os.environ['APPDATA'], 'Bitcoin') if platform.system() == 'Windows' else os.path.expanduser('~/Library/Application Support/Bitcoin/') if platform.system() == 'Darwin' else os.path.expanduser('~/.bitcoin'), 'bitcoin.conf') | ||
BLOCK_EXPLORER_URL_PREFIX = '#' | ||
ADDRESS_EXPLORER_URL_PREFIX = '#' | ||
TX_EXPLORER_URL_PREFIX = '#' | ||
SANE_TARGET_RANGE = (2**256//2**32//1000 - 1, 2**256//2 - 1) | ||
DUMB_SCRYPT_DIFF = 1 | ||
DUST_THRESHOLD = 1e8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
from p2pool.bitcoin import networks | ||
|
||
PARENT = networks.nets['btcregtest'] | ||
SHARE_PERIOD = 30 # seconds | ||
CHAIN_LENGTH = 60*60//10 # shares | ||
REAL_CHAIN_LENGTH = 60*60//10 # shares | ||
TARGET_LOOKBEHIND = 200 # shares | ||
SPREAD = 3 # blocks | ||
IDENTIFIER = '5ad2c6ecbd7d9372'.decode('hex') | ||
PREFIX = '8f2c8d54b3278bc8'.decode('hex') | ||
P2P_PORT = 19444 | ||
MIN_TARGET = 0 | ||
MAX_TARGET = 2**256//2 - 1 | ||
PERSIST = False | ||
WORKER_PORT = 19443 | ||
BOOTSTRAP_ADDRS = [] | ||
ANNOUNCE_CHANNEL = '#p2pool-alt' | ||
VERSION_CHECK = lambda v: None if 100000 <= v else 'Bitcoin version too old. Upgrade to 0.11.2 or newer!' # not a bug. BIP65 support is ensured by SOFTFORKS_REQUIRED | ||
VERSION_WARNING = lambda v: None | ||
SOFTFORKS_REQUIRED = set(['bip65', 'csv', 'segwit']) | ||
MINIMUM_PROTOCOL_VERSION = 1600 | ||
NEW_MINIMUM_PROTOCOL_VERSION = 1700 |