Browse Source

added network type to getinfo

patch-4
mrmena 2 years ago
parent
commit
7a53b2cd47
  1. 3
      electrum/commands.py

3
electrum/commands.py

@ -65,7 +65,7 @@ from .invoices import Invoice
from . import submarine_swaps
from . import GuiImportError
from . import crypto
from . import constants
if TYPE_CHECKING:
from .network import Network
@ -204,6 +204,7 @@ class Commands:
""" network info """
net_params = self.network.get_parameters()
response = {
'network': globals()['constants'].net.NET_NAME,
'path': self.network.config.path,
'server': net_params.server.host,
'blockchain_height': self.network.get_local_height(),

Loading…
Cancel
Save