Skip to content

Commit

Permalink
fix snapshot importer
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Leshiy committed Aug 7, 2023
1 parent bf447ca commit 190d1fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/event-db/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ services:
- ADMIN_ROLE_PASSWORD=CHANGE_ME
- ADMIN_USER_PASSWORD=CHANGE_ME
- ANON_ROLE_PASSWORD=CHANGE_ME
- STAGE=dev
depends_on:
postgres:
condition: service_healthy
Original file line number Diff line number Diff line change
Expand Up @@ -465,15 +465,14 @@ async def _run_catalyst_toolbox_snapshot(self):
"min_stake_threshold and voting_power_cap must be set either as CLI arguments or in the database"
)

for network_id, params in self.network_params.items():
for params in self.network_params.values():
catalyst_toolbox_cmd = (
f"{self.catalyst_toolbox_path} snapshot"
f" -s {params.snapshot_tool_out_file}"
f" -m {self.min_stake_threshold}"
f" -v {self.voting_power_cap}"
f" --dreps {self.dreps_out_file}"
f" --output-format json {params.catalyst_toolbox_out_file}"
f" --net-type {network_id}"
)

await run_cmd("catalyst-toolbox", catalyst_toolbox_cmd)
Expand Down

0 comments on commit 190d1fc

Please sign in to comment.