From f41a5600f02b50f39c0c641d6d7983e05c24c5ca Mon Sep 17 00:00:00 2001 From: jMyles Date: Sat, 20 Apr 2019 18:59:48 +0200 Subject: [PATCH] Patch for ETHCapeTown demo. --- nucypher/characters/lawful.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 "