Skip to content

Instantly share code, notes, and snippets.

@ohac
Created December 12, 2015 00:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ohac/15ad1c08e204a03b1955 to your computer and use it in GitHub Desktop.
Save ohac/15ad1c08e204a03b1955 to your computer and use it in GitHub Desktop.
diff --git a/lib/daemon.py b/lib/daemon.py
index 1032092..a17420a 100644
--- a/lib/daemon.py
+++ b/lib/daemon.py
@@ -30,7 +30,7 @@ from network import Network
def get_daemon(config):
host = config.get('rpchost', 'localhost')
- port = config.get('rpcport', 7777)
+ port = config.get('rpcport', 7778)
server = jsonrpclib.Server('http://%s:%d' % (host, port))
# check if daemon is running
try:
@@ -68,7 +68,7 @@ class Daemon(util.DaemonThread):
self.wallet = None
self.cmd_runner = Commands(self.config, self.wallet, self.network)
host = config.get('rpchost', 'localhost')
- port = config.get('rpcport', 7777)
+ port = config.get('rpcport', 7778)
self.server = SimpleJSONRPCServer((host, port), requestHandler=RequestHandler, logRequests=False)
self.server.socket.settimeout(1)
for cmdname in known_commands:
diff --git a/lib/network.py b/lib/network.py
index e82b67b..215ad4b 100644
--- a/lib/network.py
+++ b/lib/network.py
@@ -21,21 +21,10 @@ from version import ELECTRUM_VERSION, PROTOCOL_VERSION
DEFAULT_PORTS = {'t':'50001', 's':'50002', 'h':'8081', 'g':'8082'}
DEFAULT_SERVERS = {
- 'electrum.cryptomachine.com': DEFAULT_PORTS,
- 'electrum-ltc.bysh.me': DEFAULT_PORTS,
- 'electrum-ltc.koddos.com': DEFAULT_PORTS,
- 'electrum-ltc.thwg.org': DEFAULT_PORTS,
- 'electrum.dragonzone.net': {'t':'50003', 's':'50004'},
- 'electrum.litecoiners.nl': DEFAULT_PORTS,
- 'electrum.litecoinguard.com': DEFAULT_PORTS,
- 'electrum.ltc.xurious.com': DEFAULT_PORTS,
- 'electrum.lurkmore.com': DEFAULT_PORTS,
- 'electrum.snicter.com': DEFAULT_PORTS,
- 'electrum.petrkr.net': {'t':'60001', 's':'60002'},
- 'eltc.osl2.i2p.io': DEFAULT_PORTS,
- 'glacialsoftware.net': DEFAULT_PORTS,
- 'ltc2.electrum-servers.us': DEFAULT_PORTS,
- 'rho.hicapacity.org': DEFAULT_PORTS,
+ 'electrum-ltc.alexcos.ro': {'s':'50004'},
+ 'ltc.el.1.btcnetwork.info': {'t':'5002'},
+ 'electrum-ltc.bysh.me': {'s':'50002'},
+ 'tacotruck.com': {'s':'50002'},
}
NODES_RETRY_INTERVAL = 60
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment