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

Extract configuration into JSON-file #54 #55

Merged
merged 4 commits into from
Jun 29, 2022

Conversation

s-medvedev
Copy link
Contributor

@s-medvedev s-medvedev commented Jun 22, 2022

The configuration file contains all parameters used to create the right environment.
Pubkeys can be specified as values or filename to the keypair (it is actually for the creator-keypair when creating the environment).

  • payer can be specified in arguments, config file or get default from solana-cli config file
  • URL can be specified in arguments, config file or get default from solana-cli config file

@s-medvedev s-medvedev requested a review from at5500 June 22, 2022 11:46
@s-medvedev s-medvedev self-assigned this Jun 22, 2022
let path = file?.path();
match read_keypair_file(path.clone()) {
Ok(keypair) => voter_keypairs.push(keypair),
Err(err) => println!("Skip '{}' due to {}", path.display(), err),
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe we change println! macros to info! from Tokio Tracing?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We can do it in a separate issue.

@s-medvedev s-medvedev merged commit 13cdf8e into main Jun 29, 2022
@s-medvedev s-medvedev deleted the 54-extract-configuration-into-JSON-file branch June 29, 2022 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants