model/network.py
def load(self) -> None:
        """Loads essential components of the node"""

        if self.__info is None:
            try:
                with open(NODE_PATH, "r") as f:
                    self.__info = json.load(f)
            except IOError:
                self.__info = {"connected_nodes": [], "transactions": {}}

                self.save()
Loads essential components of the node
Loads essential components of the node
Loads essential components of the node
def load(self) -> None:
        if self.__info is None:
            try:
                with open(NODE_PATH, "r") as f:
                    self.__info = json.load(f)
            except IOError:
                self.__info = {"connected_nodes": [], "transactions": {}}
                self.save()
def load ( self ) -> None : if self . __info is None : try : with open ( NODE_PATH , "r" ) as f : self . __info = json . load ( f ) except IOError : self . __info = { "connected_nodes" : [ ] , "transactions" : { } } self . save ( )
Loads essential components of the node
Loads essential components of the node
"""Loads essential components of the node"""
self