1
0

Merge pull request #4008 from SomberNight/network_constants_refactor

refactor network constants
This commit is contained in:
ThomasV
2018-03-04 23:13:50 +01:00
committed by GitHub
16 changed files with 191 additions and 132 deletions

View File

@@ -99,8 +99,8 @@ class ElectrumWindow(App):
from .uix.dialogs.choice_dialog import ChoiceDialog
protocol = 's'
def cb2(host):
from electrum.bitcoin import NetworkConstants
pp = servers.get(host, NetworkConstants.DEFAULT_PORTS)
from electrum import constants
pp = servers.get(host, constants.net.DEFAULT_PORTS)
port = pp.get(protocol, '')
popup.ids.host.text = host
popup.ids.port.text = port