|
@@ -114,8 +114,10 @@ class TelescopingExtendedHandler:
|
|
|
def received_cell(self, circhandler, cell):
|
|
|
print("LOG: Received cell in TelescopingExtendedHandler")
|
|
|
|
|
|
- #TODO validate the SNIP
|
|
|
- print("WARNING: Unimplemented! Need to validate the SNIP before proceeding.")
|
|
|
+ # Validate the SNIP
|
|
|
+ dirauth.SNIP.verify(cell.snip, self.channelmgr.consensus,
|
|
|
+ network.thenetwork.dirauthkeys()[0],
|
|
|
+ self.channelmgr.perfstats)
|
|
|
|
|
|
onionkey = cell.snip.snipdict['onionkey']
|
|
|
idkey = cell.snip.snipdict['idkey']
|