X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=lib%2Fnetwork.py;h=6a3aee1533a79c4dd85589ea28744ece9c1e66ba;hb=3cbe11a42473af52e7c5e002c36aaaf32646f627;hp=a6be0a4356d7a33173575031a03b39b4301ab889;hpb=173c034e2619dda72fe4f6bf5e69e839b9632de0;p=electrum-nvc.git diff --git a/lib/network.py b/lib/network.py index a6be0a4..6a3aee1 100644 --- a/lib/network.py +++ b/lib/network.py @@ -7,20 +7,7 @@ from blockchain import Blockchain DEFAULT_PORTS = {'t':'50001', 's':'50002', 'h':'8081', 'g':'8082'} DEFAULT_SERVERS = { - 'ecdsa.org': DEFAULT_PORTS, - 'ecdsa.net': DEFAULT_PORTS, - 'electrum.hachre.de': DEFAULT_PORTS, - 'electrum.novit.ro': DEFAULT_PORTS, - 'electrum.coinwallet.me': DEFAULT_PORTS, - 'cube.l0g.in': DEFAULT_PORTS, - 'bitcoin.epicinet.net': DEFAULT_PORTS, - 'h.1209k.com': DEFAULT_PORTS, - 'electrum.electricnewyear.net': DEFAULT_PORTS, - 'erbium.sytes.net': DEFAULT_PORTS, - 'e2.pdmc.net':DEFAULT_PORTS, - 'electrum.no-ip.org':{'h': '80', 's': '50002', 't': '50001', 'g': '443'}, - 'electrum.thwg.org':DEFAULT_PORTS, - 'electrum.stepkrav.pw':DEFAULT_PORTS, + '127.0.0.1': DEFAULT_PORTS, } @@ -72,7 +59,9 @@ from simple_config import SimpleConfig class Network(threading.Thread): - def __init__(self, config = {}): + def __init__(self, config=None): + if config is None: + config = {} # Do not use mutables as default values! threading.Thread.__init__(self) self.daemon = True self.config = SimpleConfig(config) if type(config) == type({}) else config