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 0005f9b16f2ec818d564a4d431dc51b513088f54
parent 66dad7f2f6e9432464c45d1c5ea1abae0ee5877c
Author: chris-belcher <chris-belcher@users.noreply.github.com>
Date:   Mon, 16 Apr 2018 19:45:06 +0100

tweaked the readme file, fixed a crash in broadcast transaction code

Diffstat:
MREADME.md | 11+++++------
Mserver.py | 2+-
2 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/README.md b/README.md @@ -64,12 +64,11 @@ matches what is written in `config.cfg` (port 50002 by default). A guide for installing Electrum Personal Server on a Raspberry Pi can be found [here](https://github.com/Stadicus/guides/blob/master/raspibolt/raspibolt_64_electrum.md). -By default Electrum will connect to several Electrum servers to obtain block -headers. This can be avoided by starting Electrum on the command line with the -`--oneserver` flag. - -By using the `--oneserver --server 127.0.0.1:50002:s` flags, the autoconnect -button in the GUI can be disabled to prevent accidentally clicking on it. +Pro Tip: run Electrum wallet with the command line arguments `--oneserver --server localhost:50002:s`. +This stops Electrum connecting to several other servers to obtain block +headers; and locks Electrum to connect only to your server, disabling the GUI +button to stop accidental connections. This helps avoid a user accidentally +ruining their privacy by connecting to public Electrum servers. Electrum Personal Server also works on [testnet bitcoin](https://en.bitcoin.it/wiki/Testnet). The Electrum wallet can be started in testnet mode with the command line flag `--testnet`. diff --git a/server.py b/server.py @@ -196,7 +196,7 @@ def handle_query(sock, line, rpc, txmonitor): try: result = rpc.call("sendrawtransaction", [query["params"][0]]) except JsonRpcError as e: - result = e.message + result = str(e) debug("tx broadcast result = " + str(result)) send_response(sock, query, result) elif method == "mempool.get_fee_histogram":