Skip to content

Commit b3e9811

Browse files
committed
Rename to Dopple
1 parent 815ea6f commit b3e9811

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# JSON-RPC Proxy
1+
# Dopple
22

3-
This Python script (found in `scripts/jsonrpcproxy.py`) provides HTTP proxy to Unix Socket based JSON-RPC servers.
3+
This Python script (found in `dopple.py`) provides HTTP proxy to Unix Socket based JSON-RPC servers.
44
Check out --help option for more information.
55

66
## Use
77

88
```bash
9-
jsonrpcproxy.py --backend_path ~/.ethereum/geth.ipc --proxy_url http://127.0.0.1:8545
9+
dopple.py --backend_path ~/.ethereum/geth.ipc --proxy_url http://127.0.0.1:8545
1010
```
1111

1212
These values above are the default ones too. If they match your current configuration, they can be ommitted.

scripts/jsonrpcproxy.py renamed to dopple.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
# Licensed under the Apache License, Version 2.0. See the LICENSE file.
55

66
"""
7-
JSON-RPC Proxy
7+
Dopple JSON-RPC Proxy
88
99
This Python script provides HTTP proxy to Unix Socket based JSON-RPC servers.
1010
Check out --help option for more information.
1111
1212
Build with cython:
1313
14-
cython rpcproxy.py --embed
15-
gcc -O3 -I /usr/include/python3.5m -o rpcproxy rpcproxy.c \
14+
cython dopple.py --embed
15+
gcc -O3 -I /usr/include/python3.5m -o dopple dopple.c \
1616
-Wl,-Bstatic -lpython3.5m -lz -lexpat -lutil -Wl,-Bdynamic -lpthread -ldl -lm
1717
1818
"""
@@ -37,7 +37,7 @@
3737
BUFSIZE = 32
3838
DELIMITER = ord('\n')
3939
BACKEND_CONNECTION_TIMEOUT=30.0
40-
INFO = """JSON-RPC Proxy
40+
INFO = """Dopple JSON-RPC Proxy
4141
4242
Version: {version}
4343
Proxy: {proxy_url}
@@ -246,7 +246,7 @@ def run(self):
246246
self.conn = get_ipc_connector(self.backend_address)
247247
self.conn.check_connection(timeout=BACKEND_CONNECTION_TIMEOUT)
248248

249-
print("JSON-RPC HTTP Proxy: {} -> {}".format(
249+
print("Dopple JSON-RPC HTTP Proxy: {} -> {}".format(
250250
self.backend_address, self.proxy_url), file=sys.stderr, flush=True)
251251
self.serve_forever()
252252

@@ -264,7 +264,7 @@ def run(self):
264264

265265
def parse_args():
266266
parser = ArgumentParser(
267-
description='HTTP Proxy for JSON-RPC servers',
267+
description='Dopple HTTP Proxy for JSON-RPC servers',
268268
formatter_class=ArgumentDefaultsHelpFormatter
269269
)
270270

@@ -287,7 +287,7 @@ def run(proxy_url=DEFAULT_PROXY_URL, backend_path=DEFAULT_BACKEND_PATH):
287287

288288
def run_daemon(proxy_url=DEFAULT_PROXY_URL, backend_path=DEFAULT_BACKEND_PATH):
289289
proxy = Proxy(proxy_url, backend_path)
290-
th = threading.Thread(name='jsonrpcproxy', target=proxy.run)
290+
th = threading.Thread(name='dopple', target=proxy.run)
291291
th.daemon = True
292292
th.start()
293293
return proxy

0 commit comments

Comments
 (0)