Skip to content

Commit

Permalink
Drop the .py suffix from electrumx_server & electrumx_rpc
Browse files Browse the repository at this point in the history
  • Loading branch information
Neil Booth committed Jul 11, 2018
1 parent 4171e58 commit 26206fd
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion contrib/daemontools/env/ELECTRUMX
@@ -1 +1 @@
/path/to/electrumx_server.py
/path/to/electrumx_server
2 changes: 1 addition & 1 deletion contrib/raspberrypi3/run_electrumx.sh
Expand Up @@ -25,7 +25,7 @@ export RPC_PORT=8000

# run electrumx
ulimit -n 10000
/usr/local/bin/electrumx_server.py 2>> /home/username/.electrumx/electrumx.log >> /home/username/.electrumx/electrumx.log &
/usr/local/bin/electrumx_server 2>> /home/username/.electrumx/electrumx.log >> /home/username/.electrumx/electrumx.log &

######################
# auto-start electrumx
Expand Down
2 changes: 1 addition & 1 deletion contrib/systemd/electrumx.service
Expand Up @@ -4,7 +4,7 @@ After=network.target

[Service]
EnvironmentFile=/etc/electrumx.conf
ExecStart=/usr/local/bin/electrumx_server.py
ExecStart=/usr/local/bin/electrumx_server
User=electrumx
LimitNOFILE=8192
TimeoutStopSec=30min
Expand Down
2 changes: 1 addition & 1 deletion docs/environment.rst
Expand Up @@ -53,7 +53,7 @@ The following are required if you use the ``run`` script:

.. envvar:: ELECTRUMX

The path to the electrumx_server.py script. Relative paths should
The path to the electrumx_server script. Relative paths should
be relative to the directory of the ``run`` script.

.. envvar:: USERNAME
Expand Down
14 changes: 7 additions & 7 deletions docs/rpc-interface.rst
Expand Up @@ -3,12 +3,12 @@ RPC Interface

You can query the status of a running server, and affect its behaviour
by sending **JSON RPC** commands to the LocalRPC port it is listening
on. This is best done using the :file:`electrumx_rpc.py` script
on. This is best done using the :file:`electrumx_rpc` script
provided.

The general form of invocation is::

electrumx_rpc.py [-p PORT] <command> [arg1 [arg2...]]
electrumx_rpc [-p PORT] <command> [arg1 [arg2...]]

The port to send the commands to can be specified on the command line,
otherwise the environment variable :envvar:`RPC_PORT` is used, and if
Expand All @@ -23,7 +23,7 @@ Add a peer to the peers list. ElectrumX will schdule an immediate
connection attempt. This command takes a single argument: the peer's
"real name" as it used to advertise itself on IRC::

$ ./electrumx_rpc.py add_peer "ecdsa.net v1.0 s110 t"
$ ./electrumx_rpc add_peer "ecdsa.net v1.0 s110 t"
"peer 'ecdsa.net v1.0 s110 t' added"

daemon_url
Expand All @@ -48,7 +48,7 @@ disconnect
Disconnect the given session IDs. Session IDs can be seen in the logs
or with the `sessions`_ RPC command::

$ ./electrumx_rpc.py disconnect 2 3
$ ./electrumx_rpc disconnect 2 3
[
"disconnected 2",
"disconnected 3"
Expand All @@ -64,7 +64,7 @@ getinfo
Return a summary of server state. This command takes no arguments.
A typical result is as follows (with annotated comments)::

$ electrumx_rpc.py getinfo
$ electrumx_rpc getinfo
{
"closing": 1, # The number of sessions being closed down
"daemon": "192.168.0.2:8332/", # The daemon URL without auth info
Expand Down Expand Up @@ -128,7 +128,7 @@ Toggle logging of the given session IDs. All incoming requests for a
logged session are written to the server log. Session IDs can be seen
in the logs or with the `sessions`_ RPC command::

$ electrumx_rpc.py log 0 1 2 3 4 5
$ electrumx_rpc log 0 1 2 3 4 5
[
"log 0: False",
"log 1: False",
Expand All @@ -153,7 +153,7 @@ This command takes no arguments.
Peer data is obtained via a peer discovery protocol documented
:ref:`here <Peer Discovery>`::

$ electrumx_rpc.py peers
$ electrumx_rpc peers
Host Status TCP SSL Server Min Max Pruning Last Good Last Try Tries Source IP Address
bch.tedy.pw good 50001 50002 ElectrumX 1.2.1 0.9 1.2 07h 29m 23s 07h 30m 40s 0 peer 185.215.224.26
shsmithgoggryfbx.onion good 60001 60002 ElectrumX 1.2.1 0.9 1.2 07h 30m 34s 07h 30m 38s 0 peer
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -5,7 +5,7 @@
setuptools.setup(
name='electrumx',
version=VERSION,
scripts=['electrumx_server.py', 'electrumx_rpc.py'],
scripts=['electrumx_server', 'electrumx_rpc'],
python_requires='>=3.6',
# via environment variables, in which case I've tested with 15.0.4
# "x11_hash" package (1.4) is required to sync DASH network.
Expand Down

0 comments on commit 26206fd

Please sign in to comment.