From 01832638e5ecf0ea0d635f13b762f269858e46f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20N=C3=BA=C3=B1ez?= Date: Fri, 14 Jun 2019 15:48:13 +0200 Subject: [PATCH] Forced node verification resets all verification attributes to False --- nucypher/network/nodes.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/nucypher/network/nodes.py b/nucypher/network/nodes.py index a47208066..cfe8aecef 100644 --- a/nucypher/network/nodes.py +++ b/nucypher/network/nodes.py @@ -1086,8 +1086,13 @@ class Teacher: """ - # Only perform this check once per object - if not force and self.verified_node: + if force: + self.verified_interface = False + self.verified_node = False + self.verified_stamp = False + self.verified_worker = False + + if self.verified_node: return True # This is both the stamp's client signature and interface metadata check; May raise InvalidNode