diff --git a/doc/usage.md b/doc/usage.md index 98af1474d..acb6ae351 100644 --- a/doc/usage.md +++ b/doc/usage.md @@ -55,7 +55,7 @@ $ du db/ ## Electrum client ```bash # Connect only to the local server, for better privacy -$ electrum --oneserver --server=127.0.0.1:50001:t +$ ./local-electrum.bash ``` ## Monitoring diff --git a/scripts/local-electrum.bash b/scripts/local-electrum.bash new file mode 100755 index 000000000..8886cec90 --- /dev/null +++ b/scripts/local-electrum.bash @@ -0,0 +1,9 @@ +#!/bin/bash +set -eux + +ADDR=127.0.0.1 # localhost +PORT=50001 # default mainnet Electrum RPC port +PROTOCOL=t # TCP (no SSL) + +# Use only local Electrum server: +electrum --oneserver --server="$ADDR:$PORT:$PROTOCOL" $*