started adding some basic logging functionality
This commit is contained in:
@@ -16,6 +16,10 @@ class MinerNetwork:
|
||||
def __len__(self):
|
||||
return len([item for item in self.get_network().hosts()])
|
||||
|
||||
def __repr__(self):
|
||||
return str(self.network)
|
||||
|
||||
|
||||
def get_network(self) -> ipaddress.ip_network:
|
||||
"""Get the network using the information passed to the MinerNetwork or from cache."""
|
||||
# if we have a network cached already, use that
|
||||
|
||||
Reference in New Issue
Block a user