diff --git a/nucypher/characters/lawful.py b/nucypher/characters/lawful.py index 971426485..af5597510 100644 --- a/nucypher/characters/lawful.py +++ b/nucypher/characters/lawful.py @@ -180,7 +180,8 @@ class Alice(Character, PolicyAuthor): expiration=None, value=None, handpicked_ursulas=None, - timeout=10): + timeout=10, + discover_on_this_thread=False): if not m: # TODO: get m from config #176 @@ -221,7 +222,7 @@ class Alice(Character, PolicyAuthor): # If we're federated only, we need to block to make sure we have enough nodes. if self.federated_only and len(self.known_nodes) < n: - good_to_go = self.block_until_number_of_known_nodes_is(n, learn_on_this_thread=True, timeout=timeout) + good_to_go = self.block_until_number_of_known_nodes_is(n, learn_on_this_thread=discover_on_this_thread, timeout=timeout) if not good_to_go: raise ValueError( "To make a Policy in federated mode, you need to know about "