1
0

Merge pull request #8044 from mrmena/network_name

add network name to getinfo()
This commit is contained in:
ThomasV
2022-10-30 10:41:40 +01:00
committed by GitHub

View File

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