electrum-personal-server

Maximally lightweight electrum server for a single user
git clone https://git.parazyd.org/electrum-personal-server
Log | Files | Refs | README

commit b3e5527c9eb0437a49237ae77f0191c97d6d3825
parent 3531bc423f23e10b540dfdce4ad2c830670f2b36
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:
Melectrumpersonalserver/server/__init__.py | 1+
Melectrumpersonalserver/server/common.py | 7+++++--
2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/electrumpersonalserver/server/__init__.py b/electrumpersonalserver/server/__init__.py @@ -44,4 +44,5 @@ from electrumpersonalserver.server.electrumprotocol import ( get_block_header, get_current_header, get_block_headers_hex, + DONATION_ADDR, ) diff --git a/electrumpersonalserver/server/common.py b/electrumpersonalserver/server/common.py @@ -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 @@ -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):