mirror of https://github.com/nucypher/nucypher.git
Just set the node's cert filepath as soon as we know it - that way we don't need to constantly pass it into middleware.
parent
9d356af5a8
commit
09c7b5b3f5
|
@ -24,6 +24,7 @@ from umbral.keys import UmbralPublicKey, UmbralPrivateKey, UmbralKeyingMaterial
|
|||
|
||||
from nucypher.keystore import keypairs
|
||||
from nucypher.keystore.keypairs import SigningKeypair, DecryptingKeypair
|
||||
from nucypher.utilities.decorators import validate_checksum_address
|
||||
|
||||
|
||||
class PowerUpError(TypeError):
|
||||
|
|
|
@ -383,6 +383,7 @@ class Learner:
|
|||
raise RuntimeError
|
||||
|
||||
if self.save_metadata:
|
||||
node.certificate_filepath = certificate_filepath
|
||||
self.node_storage.store_node_metadata(node=node)
|
||||
|
||||
self.log.info("Remembering {}, popping {} listeners.".format(node.checksum_public_address, len(listeners)))
|
||||
|
|
Loading…
Reference in New Issue