1
0

lnrater: follow-up

Add comment on node score and return copies of channel db dicts.
This commit is contained in:
bitromortac
2020-11-17 07:51:45 +01:00
parent ef744f164b
commit 96c9a483d0
2 changed files with 7 additions and 5 deletions

View File

@@ -762,11 +762,11 @@ class ChannelDB(SqlDB):
def get_node_infos(self) -> Dict[bytes, NodeInfo]:
with self.lock:
return self._nodes
return self._nodes.copy()
def get_node_policies(self) -> Dict[Tuple[bytes, ShortChannelID], Policy]:
with self.lock:
return self._policies
return self._policies.copy()
def to_dict(self) -> dict:
""" Generates a graph representation in terms of a dictionary.