Browse Source

prevent collision on daemon port. Add Imported_Wallet (bolkin)

283
ThomasV 11 years ago
parent
commit
4ec31b9fe9
  1. 2
      lib/__init__.py
  2. 2
      lib/daemon.py

2
lib/__init__.py

@ -1,7 +1,7 @@
from version import ELECTRUM_VERSION
from util import format_satoshis, print_msg, print_json, print_error, set_verbosity
from wallet import WalletSynchronizer, WalletStorage
from wallet import Wallet, Wallet_2of2, Wallet_2of3
from wallet import Wallet, Wallet_2of2, Wallet_2of3, Imported_Wallet
from verifier import TxVerifier
from network import Network, DEFAULT_SERVERS, DEFAULT_PORTS, pick_random_server
from interface import Interface

2
lib/daemon.py

@ -307,7 +307,7 @@ class NetworkServer:
self.network = network
self.server = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
self.server.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
self.daemon_port = config.get('daemon_port', 8000)
self.daemon_port = config.get('daemon_port', 8001)
self.server.bind(('', self.daemon_port))
self.server.listen(5)
self.server.settimeout(1)

Loading…
Cancel
Save