From 0e68da0497ae1930464ed6d709ffb09f76e53935 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Massart?= Date: Tue, 29 Jan 2019 22:48:05 +0800 Subject: [PATCH] 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 --- .travis.yml | 2 +- Dockerfile | 2 +- README.md | 2 +- VERSION | 2 +- bin/init | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 6ddde0e..3c161da 100644 --- a/.travis.yml +++ b/.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 diff --git a/Dockerfile b/Dockerfile index 59cb09f..61e8069 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM python:3.6-alpine3.6 +FROM python:3.7-alpine3.7 LABEL maintainer="Luke Childs " COPY ./bin /usr/local/bin diff --git a/README.md b/README.md index be5539b..8ef65bd 100644 --- a/README.md +++ b/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 ``` diff --git a/VERSION b/VERSION index c068b24..88d3ee7 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.4 +1.8.7 diff --git a/bin/init b/bin/init index 49114e4..de2157e 100644 --- a/bin/init +++ b/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