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 8d53ce04e6fdf9c9c328ad53fab97539e1716321
parent 588945c2b88cd378d4711f40ad507dee9daa9948
Author: chris-belcher <chris-belcher@users.noreply.github.com>
Date:   Mon,  5 Nov 2018 17:18:33 +0000

Reworded confusing error messages about scripthash

Issue #55 is one example where users were confused by mentions of
"scripthash", which is essentially interchangable with "address"
but makes people think of pay-to-script-hash instead.

Diffstat:
Melectrumpersonalserver/server/common.py | 10++++++----
1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/electrumpersonalserver/server/common.py b/electrumpersonalserver/server/common.py @@ -156,8 +156,10 @@ def handle_query(sock, line, rpc, txmonitor): if txmonitor.subscribe_address(scrhash): history_hash = txmonitor.get_electrum_history_hash(scrhash) else: - logger.warning("address scripthash not known to server: " + - scrhash) + logger.warning("Address not known to server, hash(address) = " + + scrhash + ".\nThis means Electrum is requesting information " + + "about addresses that are missing from Electrum Personal " + + "Server's configuration file.") history_hash = hashes.get_status_electrum([]) send_response(sock, query, history_hash) elif method == "blockchain.scripthash.get_history": @@ -165,8 +167,8 @@ def handle_query(sock, line, rpc, txmonitor): history = txmonitor.get_electrum_history(scrhash) if history == None: history = [] - logger.warning("address scripthash history not known to server: " - + scrhash) + logger.warning("Address history not known to server, " + + "hash(address) = " + scrhash) send_response(sock, query, history) elif method == "server.ping": send_response(sock, query, None)