@@ -19,11 +19,9 @@ they are both at the same level. eg:
19
19
├── cardano-db-sync
20
20
├── cardano-node
21
21
```
22
- To setup and run db sync node for testnet replace ** mainnet** with ** testnet** in all examples below.
23
22
These instuction assume than only blocks and transactions for a single blockchain are inserted in
24
23
the db. If you want to to use a single database for more than one chain, you will need to duplicate
25
- ` config/pgpass ` and provide a unique db name for each chain (ie mainnet uses ` cexplorer ` ). An example
26
- testnet ` PGPASSFILE ` is at ` config/pgpass-testnet ` .
24
+ ` config/pgpass ` and provide a unique db name for each chain (ie mainnet uses ` cexplorer ` ).
27
25
28
26
### Set up and run a local node
29
27
@@ -92,34 +90,6 @@ PGPASSFILE=config/pgpass-mainnet db-sync-node/bin/cardano-db-sync \
92
90
--schema-dir schema/
93
91
```
94
92
95
- ### Run two chains with a single PostgreSQL instance
93
+ ### Network Configuration, Genesis and Topology Files
96
94
97
- By running two ` cardano-node ` s and using two databases within a single PostgresSQL instance it is
98
- possible to sync two (or more chains).
99
-
100
- The two nodes might be run in separate terminals using:
101
- ```
102
- nix-build -A scripts.mainnet.node -o mainnet-node-remote && ./mainnet-node-remote
103
- ```
104
- and
105
- ```
106
- nix-build -A scripts.testnet.node -o testnet-node-remote && ./testnet-node-remote
107
- ```
108
- and then the two ` db-sync ` process run as:
109
- ```
110
- PGPASSFILE=config/pgpass-mainnet scripts/postgresql-setup.sh --createdb
111
- PGPASSFILE=config/pgpass-mainnet db-sync-node/bin/cardano-db-sync \
112
- --config config/mainnet-config.yaml \
113
- --socket-path ../cardano-node/state-node-mainnet/node.socket \
114
- --state-dir ledger-state/mainnet \
115
- --schema-dir schema/
116
- ```
117
- and
118
- ```
119
- PGPASSFILE=config/pgpass-testnet scripts/postgresql-setup.sh --createdb
120
- PGPASSFILE=config/pgpass-testnet db-sync-node/bin/cardano-db-sync \
121
- --config config/testnet-config.yaml \
122
- --socket-path ../cardano-node/state-node-testnet/node.socket \
123
- --state-dir ledger-state/testnet \
124
- --schema-dir schema/
125
- ```
95
+ The latest supported networks can be found at [ world book] ( https://book.world.dev.cardano.org/environments.html )
0 commit comments