mirror of
https://github.com/markqvist/NomadNet.git
synced 2025-05-10 10:04:56 -04:00
Implemented identity queries and indication for unknown message originators
This commit is contained in:
parent
9a0c4ea6a8
commit
420cfcbbe3
3 changed files with 73 additions and 12 deletions
|
@ -82,6 +82,18 @@ class Directory:
|
|||
else:
|
||||
return None
|
||||
|
||||
def is_known(self, source_hash):
|
||||
try:
|
||||
self.source_identity = RNS.Identity.recall(source_hash)
|
||||
|
||||
if self.source_identity:
|
||||
return True
|
||||
else:
|
||||
return False
|
||||
|
||||
except Exception as e:
|
||||
return False
|
||||
|
||||
|
||||
class DirectoryEntry:
|
||||
WARNING = 0x00
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue