From 9549158115b5eedb7730d44e781f4e7971f43669 Mon Sep 17 00:00:00 2001 From: "John L. Jegutanis" Date: Wed, 5 Apr 2017 14:38:34 +0300 Subject: [PATCH 1/2] Add Einsteinium support --- lib/coins.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/lib/coins.py b/lib/coins.py index 46a20ea..5a1c5a1 100644 --- a/lib/coins.py +++ b/lib/coins.py @@ -794,3 +794,23 @@ class Zcash(Coin): @classmethod def deserializer(cls): return DeserializerZcash + + +class Einsteinium(Coin): + NAME = "Einsteinium" + SHORTNAME = "EMC2" + NET = "mainnet" + # TODO add correct values for XPUB, XPRIV + XPUB_VERBYTES = bytes.fromhex("0488b21e") + XPRV_VERBYTES = bytes.fromhex("0488ade4") + P2PKH_VERBYTE = bytes.fromhex("21") + P2SH_VERBYTE = bytes.fromhex("05") + WIF_BYTE = bytes.fromhex("a1") + GENESIS_HASH = ('4e56204bb7b8ac06f860ff1c845f03f9' + '84303b5b97eb7b42868f714611aed94b') + TX_COUNT = 2087559 + TX_COUNT_HEIGHT = 1358517 + TX_PER_BLOCK = 2 + IRC_PREFIX = "E_" + IRC_CHANNEL = "#electrum-emc2" + RPC_PORT = 41879 From cf08903d122279de5814b99f561ea701430be277 Mon Sep 17 00:00:00 2001 From: "John L. Jegutanis" Date: Wed, 5 Apr 2017 15:31:38 +0300 Subject: [PATCH 2/2] Fix shebang for contrib scripts --- contrib/daemontools/run | 2 +- contrib/python3.6/python-3.6.sh | 6 ++++-- contrib/raspberrypi3/install_electrumx.sh | 1 + contrib/raspberrypi3/run_electrumx.sh | 1 + 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/contrib/daemontools/run b/contrib/daemontools/run index 5bafc69..ccb9d3c 100644 --- a/contrib/daemontools/run +++ b/contrib/daemontools/run @@ -1,3 +1,3 @@ -j#!/bin/sh +#!/bin/sh echo "Launching ElectrumX server..." exec 2>&1 envdir ./env /bin/sh -c 'envuidgid $USERNAME python3 $ELECTRUMX' diff --git a/contrib/python3.6/python-3.6.sh b/contrib/python3.6/python-3.6.sh index d83839d..9472ce7 100644 --- a/contrib/python3.6/python-3.6.sh +++ b/contrib/python3.6/python-3.6.sh @@ -1,5 +1,7 @@ -Installation of Python 3.6 --------------------------- +#!/bin/sh +########################### +#Installation of Python 3.6 +########################### sudo add-apt-repository ppa:jonathonf/python-3.6 sudo apt-get update && sudo apt-get install python3.6 python3.6-dev diff --git a/contrib/raspberrypi3/install_electrumx.sh b/contrib/raspberrypi3/install_electrumx.sh index db64146..5643784 100644 --- a/contrib/raspberrypi3/install_electrumx.sh +++ b/contrib/raspberrypi3/install_electrumx.sh @@ -1,3 +1,4 @@ +#!/bin/sh ################### # install electrumx ################### diff --git a/contrib/raspberrypi3/run_electrumx.sh b/contrib/raspberrypi3/run_electrumx.sh index e3d633f..7b4ade4 100644 --- a/contrib/raspberrypi3/run_electrumx.sh +++ b/contrib/raspberrypi3/run_electrumx.sh @@ -1,3 +1,4 @@ +#!/bin/sh ############### # run_electrumx ###############