tReworded confusing error messages about scripthash - 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 8d53ce04e6fdf9c9c328ad53fab97539e1716321 DIR parent 588945c2b88cd378d4711f40ad507dee9daa9948 HTML 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: M electrumpersonalserver/server/comm… | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) --- DIR diff --git a/electrumpersonalserver/server/common.py b/electrumpersonalserver/server/common.py t@@ -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": t@@ -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)