| 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(-)
--- |
| 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) |