modified the way the constants module is accessed
This commit is contained in:
@@ -204,7 +204,7 @@ class Commands:
|
|||||||
""" network info """
|
""" network info """
|
||||||
net_params = self.network.get_parameters()
|
net_params = self.network.get_parameters()
|
||||||
response = {
|
response = {
|
||||||
'network': globals()['constants'].net.NET_NAME,
|
'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(),
|
||||||
|
|||||||
Reference in New Issue
Block a user