Skip to content

Commit

Permalink
Add simple bash script for running local Electrum client
Browse files Browse the repository at this point in the history
  • Loading branch information
romanz committed Jul 22, 2018
1 parent e0a1f5a commit 18a21bf
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion doc/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 9 additions & 0 deletions scripts/local-electrum.bash
Original file line number Diff line number Diff line change
@@ -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" $*

0 comments on commit 18a21bf

Please sign in to comment.