diff --git a/.buildkite/prepare-claims.yml b/.buildkite/prepare-claims.yml index 312cd051..eb3a0a98 100644 --- a/.buildkite/prepare-claims.yml +++ b/.buildkite/prepare-claims.yml @@ -88,7 +88,6 @@ steps: - 'epoch=$(buildkite-agent meta-data get epoch)' - 'gcloud storage cp "$$snapshot_dir/validators.json" "$$gs_bucket/$$epoch/"' - 'gcloud storage cp "$$snapshot_dir/stakes.json" "$$gs_bucket/$$epoch/"' - - 'gcloud storage cp "$$snapshot_dir/events.json" "$$gs_bucket/$$epoch/"' - 'gcloud storage cp "$$snapshot_dir/claims.json" "$$gs_bucket/$$epoch/"' - 'gcloud storage cp "$$snapshot_dir/claims_merkle.json" "$$gs_bucket/$$epoch/"' - 'gcloud storage cp "$$snapshot_dir/events_all.json" "$$gs_bucket/$$epoch/"' diff --git a/insurance-engine/src/bin/cli.rs b/insurance-engine/src/bin/cli.rs index 07697480..53176e35 100644 --- a/insurance-engine/src/bin/cli.rs +++ b/insurance-engine/src/bin/cli.rs @@ -28,7 +28,7 @@ struct Args { #[arg(long, env)] output_merkle_tree_collection: String, - #[arg(long, env)] + #[arg(long, env, value_delimiter = ',')] whitelist_stake_authority: Option>, #[arg(long, env)] @@ -39,9 +39,16 @@ fn main() -> anyhow::Result<()> { let mut builder = Builder::from_env(Env::default().default_filter_or("info")); builder.init(); - info!("Starting insurance enging..."); + info!("Starting insurance engine..."); let args: Args = Args::parse(); + if let Some(whitelisted_stake_authorities) = &args.whitelist_stake_authority { + info!( + "Using whitelist on stake authorities: {:?}", + whitelisted_stake_authorities + ); + } + info!("Loading validator meta collection..."); let validator_meta_collection: ValidatorMetaCollection = read_from_json_file(&args.validator_meta_collection)?; @@ -60,10 +67,6 @@ fn main() -> anyhow::Result<()> { &args.output_insured_event_collection, )?; - if let Some(whitelisted_stake_authorities) = &args.whitelist_stake_authority { - info!("Using whitelist on stake authorities: {:?}", whitelisted_stake_authorities); - } - let stake_meta_filter = match args.whitelist_stake_authority { Some(whitelisted_stake_authorities) => Some(stake_authorities_filter(HashSet::from_iter( whitelisted_stake_authorities,