зеркало из https://github.com/microsoft/CCF.git
Fix recovery executed from tutorial (#2531)
This commit is contained in:
Родитель
be51745c57
Коммит
cae317471f
|
@ -29,7 +29,7 @@ class Consortium:
|
|||
share_script,
|
||||
members_info=None,
|
||||
curve=None,
|
||||
remote_node=None,
|
||||
network=None,
|
||||
authenticate_session=True,
|
||||
):
|
||||
self.common_dir = common_dir
|
||||
|
@ -78,7 +78,7 @@ class Consortium:
|
|||
)
|
||||
|
||||
# Retrieve state of service directly from ledger
|
||||
latest_public_state, _ = remote_node.get_latest_ledger_public_state()
|
||||
latest_public_state, _ = network.get_latest_ledger_public_state()
|
||||
self.recovery_threshold = json.loads(
|
||||
latest_public_state["public:ccf.gov.service.config"][
|
||||
ccf.ledger.WELL_KNOWN_SINGLETON_TABLE_KEY
|
||||
|
|
|
@ -442,7 +442,7 @@ class Network:
|
|||
# If a common directory was passed in, initialise the consortium from it
|
||||
if common_dir is not None:
|
||||
self.consortium = infra.consortium.Consortium(
|
||||
common_dir, self.key_generator, self.share_script, remote_node=primary
|
||||
common_dir, self.key_generator, self.share_script, network=self
|
||||
)
|
||||
|
||||
for node in self.get_joined_nodes():
|
||||
|
|
Загрузка…
Ссылка в новой задаче