Browse Source

Merge remote-tracking branch 'github/master' into release-0.4.2

master
Neil Booth 8 years ago
parent
commit
ecb70fcef9
  1. 5
      .travis.yml
  2. 3
      README.rst
  3. 3
      docs/HOWTO.rst
  4. 25
      lib/coins.py
  5. 1
      setup.py

5
.travis.yml

@ -15,5 +15,8 @@ install:
- pip install lmdb
- pip install plyvel
- pip install pyrocksdb
- pip install pytest-cov
- pip install python-coveralls
# command to run tests
script: pytest
script: pytest --cov=server --cov=lib
after_success: coveralls

3
README.rst

@ -1,5 +1,8 @@
.. image:: https://travis-ci.org/kyuupichan/electrumx.svg?branch=master
:target: https://travis-ci.org/kyuupichan/electrumx
.. image:: https://coveralls.io/repos/github/kyuupichan/electrumx/badge.svg
:target: https://coveralls.io/github/kyuupichan/electrumx
ElectrumX - Reimplementation of Electrum-server
===============================================

3
docs/HOWTO.rst

@ -14,7 +14,8 @@ small - patches welcome.
+ irc: Python IRC package. Only required if you enable IRC; ElectrumX
will happily serve clients that try to connect directly.
I use 15.0.4 but older versions likely are fine.
+ x11_hash: Python X11 Hash package. Only required if you use ElectrumX
with Dash Network (Both Mainnet and Testnet). Version == 1.4 ;
While not requirements for running ElectrumX, it is intended to be run
with supervisor software such as Daniel Bernstein's daemontools,

25
lib/coins.py

@ -307,24 +307,41 @@ class DogecoinTestnet(Coin):
WIF_BYTE = 0xf1
# Source: pycoin
# Source: https://github.com/dashpay/dash
class Dash(Coin):
NAME = "Dash"
SHORTNAME = "DASH"
NET = "mainnet"
XPUB_VERBYTES = bytes.fromhex("02fe52cc")
XPRV_VERBYTES = bytes.fromhex("02fe52f8")
GENESIS_HASH = (b'00000ffd590b1485b3caadc19b22e637'
b'9c733355108f107a430458cdf3407ab6')
P2PKH_VERBYTE = 0x4c
P2SH_VERBYTE = 0x10
WIF_BYTE = 0xcc
TX_COUNT_HEIGHT = 569399
TX_COUNT = 2157510
TX_PER_BLOCK = 4
@classmethod
def header_hashes(cls, header):
'''Given a header return the previous and current block hashes.'''
import x11_hash
return header[4:36], x11_hash.getPoWHash(header)
class DashTestnet(Coin):
NAME = "Dogecoin"
class DashTestnet(Dash):
NAME = "Dash"
SHORTNAME = "tDASH"
NET = "testnet"
XPUB_VERBYTES = bytes.fromhex("3a805837")
XPRV_VERBYTES = bytes.fromhex("3a8061a0")
P2PKH_VERBYTE = 0x8b
GENESIS_HASH = (b'00000bafbc94add76cb75e2ec9289483'
b'7288a481e5c005f6563d91623bf8bc2c')
P2PKH_VERBYTE = 0x8c
P2SH_VERBYTE = 0x13
WIF_BYTE = 0xef
TX_COUNT_HEIGHT = 101619
TX_COUNT = 132681
TX_PER_BLOCK = 1
#

1
setup.py

@ -9,6 +9,7 @@ setuptools.setup(
python_requires='>=3.5',
# "irc" package is only required if IRC connectivity is enabled
# via environment variables, in which case I've tested with 15.0.4
# "x11_hash" package (1.4) is required to sync DASH network.
install_requires=['plyvel', 'aiohttp >= 1'],
packages=setuptools.find_packages(),
description='ElectrumX Server',

Loading…
Cancel
Save