forked from p2pool/p2pool
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request p2pool#327 from veqtrus/segwit1
[hardfork] Make sure P2Pool is compliant with SegWit
- Loading branch information
Showing
18 changed files
with
353 additions
and
440 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
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
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
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
Oops, something went wrong.