electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

network.kv (2523B)


      1 Popup:
      2     id: nd
      3     title: _('Network')
      4     BoxLayout:
      5         orientation: 'vertical'
      6         ScrollView:
      7             GridLayout:
      8                 id: scrollviewlayout
      9                 cols:1
     10                 size_hint: 1, None
     11                 height: self.minimum_height
     12                 padding: '10dp'
     13                 SettingsItem:
     14                     value: _("{} connections.").format(app.num_nodes) if app.num_nodes else _("Not connected")
     15                     title: _("Status") + ': ' + self.value
     16                     description: _("Connections with Electrum servers")
     17 
     18                 CardSeparator
     19                 SettingsItem:
     20                     title: _("Server") + ': ' + app.server_host
     21                     description: _("Server used to query your history.")
     22                     action: lambda x: app.popup_dialog('server')
     23 
     24                 CardSeparator
     25                 SettingsItem:
     26                     title: _("Proxy") + ': ' + app.proxy_str
     27                     description: _('Proxy configuration')
     28                     action: lambda x: app.popup_dialog('proxy')
     29 
     30                 CardSeparator
     31                 SettingsItem:
     32                     title: _("Auto-connect") + ': ' + ('ON' if app.auto_connect else 'OFF')
     33                     description: _("Select your server automatically")
     34                     action: app.toggle_auto_connect
     35 
     36                 CardSeparator
     37                 SettingsItem:
     38                     title: _("One-server mode") + ': ' + ('ON' if app.oneserver else 'OFF')
     39                     description: _("Only connect to a single server")
     40                     action: app.toggle_oneserver
     41                     disabled: app.auto_connect and not app.oneserver
     42 
     43                 CardSeparator
     44                 SettingsItem:
     45                     value: "%d blocks" % app.num_blocks
     46                     title: _("Blockchain") + ': ' + self.value
     47                     description: _('Verified block headers')
     48 
     49                 CardSeparator
     50                 SettingsItem:
     51                     title: _('Fork detected at block {}').format(app.blockchain_forkpoint) if app.num_chains>1 else _('No fork detected')
     52                     fork_description: (_('You are following branch') if app.auto_connect else _("Your server is on branch")) + ' ' + app.blockchain_name
     53                     description: self.fork_description if app.num_chains>1 else _('Connected nodes are on the same chain')
     54                     action: app.choose_blockchain_dialog
     55                     disabled: app.num_chains == 1