Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

load public params from vault when possible #431

Merged
merged 6 commits into from
Dec 5, 2022
Merged

load public params from vault when possible #431

merged 6 commits into from
Dec 5, 2022

Conversation

adecaro
Copy link
Contributor

@adecaro adecaro commented Dec 1, 2022

This PR brings the following: At bootstrap, the stack first tries to load the public parameters from the local vault.
If the public parameters are not found and are nevertheless required, they are fetched from the remote network.

If the public params are avaible in the vault, they are loaded.
Otherwise, the committ pipeline will set them eventually.

Signed-off-by: Angelo De Caro <adc@zurich.ibm.com>
…n. If the public params are avaible in the vault, they are loaded. Otherwise, the committ pipeline will set them eventually.

Signed-off-by: Angelo De Caro <adc@zurich.ibm.com>
…n. If the public params are avaible in the vault, they are loaded. Otherwise, the committ pipeline will set them eventually.

Signed-off-by: Angelo De Caro <adc@zurich.ibm.com>
…n. If the public params are avaible in the vault, they are loaded. Otherwise, the committ pipeline will set them eventually.

Signed-off-by: Angelo De Caro <adc@zurich.ibm.com>
…n. If the public params are avaible in the vault, they are loaded. Otherwise, the committ pipeline will set them eventually.

Signed-off-by: Angelo De Caro <adc@zurich.ibm.com>
Signed-off-by: Angelo De Caro <adc@zurich.ibm.com>
@adecaro adecaro requested a review from HagarMeir December 1, 2022 15:28
@adecaro adecaro self-assigned this Dec 1, 2022
@adecaro adecaro added the enhancement New feature or request label Dec 1, 2022
@@ -209,6 +209,9 @@ var BobAcceptedTransactions = []*ttxdb.TransactionRecord{
func TestAll(network *integration.Infrastructure, auditor string) {
RegisterAuditor(network, auditor)

// give some time to the nodes to get the public parameters
time.Sleep(10 * time.Second)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a way to move this sleep somewhere so it doesn't have to appear at the beginning of each test?

@adecaro adecaro merged commit 00d73a0 into main Dec 5, 2022
@adecaro adecaro deleted the f-fetchpp branch December 5, 2022 08:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants