IntersectMBO / cardano-db-sync

A component that follows the Cardano chain and stores blocks and transactions in PostgreSQL
Apache License 2.0
283 stars 158 forks source link

Documentation example misleading #1750

Closed chrispalaskas closed 3 days ago

chrispalaskas commented 4 days ago

In doc/running.md at the end we have: Finally, we can start cardano-db-sync:

PGPASSFILE=config/pgpass-mainnet cardano-db-sync -- \ --config ~/src/cardano-environments/mainnet/config.json \ --socket-path ~/src/cardano-environments/mainnet/node.socket \ --state-dir ~/src/cardano-environments/mainnet/ledger-state \ --schema-dir schema/

The config file should be db-sync-config.json which we just downloaded from https://book.world.dev.cardano.org/environments/mainnet/db-sync-config.json and not ~/src/cardano-environments/mainnet/config.json which seems very similar to the cardano-node config from the previous step. @disassembler

Cmdv commented 3 days ago

Good spot, these docs aren't always updated properly it seems. I'll make an amend to rename the config to be correct. My bad just seen a PR was merged for this so will close issue.

Cmdv commented 3 days ago

This was completed by https://github.com/IntersectMBO/cardano-db-sync/pull/1753