tAdd donation address to stdout as well - electrum-personal-server - Maximally lightweight electrum server for a single user HTML git clone https://git.parazyd.org/electrum-personal-server DIR Log DIR Files DIR Refs DIR README --- DIR commit b3e5527c9eb0437a49237ae77f0191c97d6d3825 DIR parent 3531bc423f23e10b540dfdce4ad2c830670f2b36 HTML Author: chris-belcher <chris-belcher@users.noreply.github.com> Date: Thu, 4 Jun 2020 14:51:51 +0100 Add donation address to stdout as well Someone on twitter asked for a donation address, turns out they didnt see the one in the Electrum console Diffstat: M electrumpersonalserver/server/__in… | 1 + M electrumpersonalserver/server/comm… | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) --- DIR diff --git a/electrumpersonalserver/server/__init__.py b/electrumpersonalserver/server/__init__.py t@@ -44,4 +44,5 @@ from electrumpersonalserver.server.electrumprotocol import ( get_block_header, get_current_header, get_block_headers_hex, + DONATION_ADDR, ) DIR diff --git a/electrumpersonalserver/server/common.py b/electrumpersonalserver/server/common.py t@@ -23,7 +23,8 @@ from electrumpersonalserver.server.electrumprotocol import ( ElectrumProtocol, get_block_header, get_current_header, - get_block_headers_hex + get_block_headers_hex, + DONATION_ADDR, ) ##python has demented rules for variable scope, so these t@@ -62,7 +63,9 @@ def create_server_socket(hostport): server_sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) server_sock.bind(hostport) server_sock.listen(1) - logger.info("Listening for Electrum Wallet on " + str(hostport)) + logger.info("Listening for Electrum Wallet on " + str(hostport) + "\n\n" + + "If this project is valuable to you please consider donating:\n\t" + + DONATION_ADDR) return server_sock def run_electrum_server(rpc, txmonitor, config):