Browse Source

Upgrade to ElectrumX 1.8.7 (#10)

* Update to version 1.8.7 of ElectrumX

* Upgrade to Python 3.7

This is suggested in the release notes of ElectrumX:

"It is strongly recommended you upgrade to Python 3.7, which
fixes bugs in asyncio that caused an ever-growing open file count
and memory consumption whilst serving clients.  Those problems
should not occur with Python 3.7."

* Remove .py from the file to execute

* Rename Bitcoin to BitcoinSegwit as required by ElectrumX

* Travis to check version from new path
v1.8.7
Frédéric Massart 6 years ago
committed by Luke Childs
parent
commit
0e68da0497
  1. 2
      .travis.yml
  2. 2
      Dockerfile
  3. 2
      README.md
  4. 2
      VERSION
  5. 2
      bin/init

2
.travis.yml

@ -1,7 +1,7 @@
sudo: required
services:
- docker
script: docker build -t electrumx . && ( docker run electrumx cat /electrumx/server/version.py | tee /dev/stderr | grep -q "'ElectrumX $(cat VERSION)'" ) 2>&1
script: docker build -t electrumx . && ( docker run electrumx cat /electrumx/electrumx/__init__.py | tee /dev/stderr | grep -q "'ElectrumX $(cat VERSION)'" ) 2>&1
notifications:
email:
on_success: never

2
Dockerfile

@ -1,4 +1,4 @@
FROM python:3.6-alpine3.6
FROM python:3.7-alpine3.7
LABEL maintainer="Luke Childs <lukechilds123@gmail.com>"
COPY ./bin /usr/local/bin

2
README.md

@ -15,7 +15,7 @@ An easily configurable Docker image for running an Electrum server.
docker run \
-v /home/username/electrumx:/data \
-e DAEMON_URL=http://user:pass@host:port \
-e COIN=Bitcoin \
-e COIN=BitcoinSegwit \
-p 50002:50002 \
lukechilds/electrumx
```

2
VERSION

@ -1 +1 @@
1.4
1.8.7

2
bin/init

@ -4,4 +4,4 @@ if [ ! -e "${SSL_CERTFILE}" ] || [ ! -e "${SSL_KEYFILE}" ]; then
openssl req -newkey rsa:2048 -sha256 -nodes -x509 -days 365 -subj "/O=ElectrumX" -keyout "${SSL_KEYFILE}" -out "${SSL_CERTFILE}"
fi
exec /electrumx/electrumx_server.py
exec /electrumx/electrumx_server

Loading…
Cancel
Save