X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=p2pool%2Fbitcoin%2Fnetworks.py;h=ddb60af888811dc926db6a435a5fcbd89a7b6ce8;hb=6aefc223de5d426c78aa14638bef494ab0e5b53d;hp=30666cde24d924b3ee8dda1b79c0085098528501;hpb=e1ea40901d45a0424e6f4f06313c58f1de20946e;p=p2pool.git diff --git a/p2pool/bitcoin/networks.py b/p2pool/bitcoin/networks.py index 30666cd..ddb60af 100644 --- a/p2pool/bitcoin/networks.py +++ b/p2pool/bitcoin/networks.py @@ -23,7 +23,7 @@ nets = dict( 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='http://blockexplorer.com/block/', ADDRESS_EXPLORER_URL_PREFIX='http://blockexplorer.com/address/', - SANE_TARGET_RANGE=(2**256//2**32 - 1, 2**256//2**32 - 1), + SANE_TARGET_RANGE=(2**256//2**32//1000 - 1, 2**256//2**32 - 1), ), bitcoin_testnet=math.Object( P2P_PREFIX='0b110907'.decode('hex'), @@ -41,7 +41,7 @@ nets = dict( 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='http://blockexplorer.com/testnet/block/', ADDRESS_EXPLORER_URL_PREFIX='http://blockexplorer.com/testnet/address/', - SANE_TARGET_RANGE=(2**256//2**32 - 1, 2**256//2**32 - 1), + SANE_TARGET_RANGE=(2**256//2**32//1000 - 1, 2**256//2**32 - 1), ), namecoin=math.Object(