From 29e0503852b66f295937e6dff5fa2557bb7dc801 Mon Sep 17 00:00:00 2001 From: jMyles Date: Thu, 9 Jul 2020 20:29:16 -0700 Subject: [PATCH] ...the config.node module, where it's nice to be able to be able to set a default known node class. --- nucypher/config/node.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nucypher/config/node.py b/nucypher/config/node.py index 744b033bd..5b605dc56 100644 --- a/nucypher/config/node.py +++ b/nucypher/config/node.py @@ -29,6 +29,8 @@ from constant_sorrow.constants import ( from eth_utils.address import is_checksum_address from tempfile import TemporaryDirectory from typing import Callable, List, Set, Union + +from nucypher.characters.lawful import Ursula from umbral.signing import Signature from nucypher.blockchain.eth.interfaces import BlockchainInterfaceFactory @@ -61,6 +63,9 @@ class CharacterConfiguration(BaseConfiguration): DEFAULT_NETWORK_MIDDLEWARE = RestMiddleware TEMP_CONFIGURATION_DIR_PREFIX = 'tmp-nucypher' + # When we begin to support other threshold schemes, this will be one of the concepts that makes us want a factory. + known_node_class = Ursula + # Gas DEFAULT_GAS_STRATEGY = 'fast'