Skip to content

Commit ca30eb0

Browse files
committed
Remove testnet and cherry-pick docker-compose
1 parent 4675c19 commit ca30eb0

File tree

3 files changed

+6
-36
lines changed

3 files changed

+6
-36
lines changed

doc/building-running.md

+3-33
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,9 @@ they are both at the same level. eg:
1919
├── cardano-db-sync
2020
├── cardano-node
2121
```
22-
To setup and run db sync node for testnet replace **mainnet** with **testnet** in all examples below.
2322
These instuction assume than only blocks and transactions for a single blockchain are inserted in
2423
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`).
2725

2826
### Set up and run a local node
2927

@@ -92,34 +90,6 @@ PGPASSFILE=config/pgpass-mainnet db-sync-node/bin/cardano-db-sync \
9290
--schema-dir schema/
9391
```
9492

95-
### Run two chains with a single PostgreSQL instance
93+
### Network Configuration, Genesis and Topology Files
9694

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)

doc/schema-management.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ order them in the correct order for applying to the database.
2828
Whenever the Haskell schema definition in `Cardano.Db.Schema` is updated, a schema migration can
2929
be generated using the command:
3030
```
31-
export PGPASSFILE=config/pgpass-testnet
31+
export PGPASSFILE=config/pgpass-mainnet
3232
cabal run cardano-db-tool -- create-migration --mdir schema/
3333
```
3434
which will only generate a migration if one is needed. It is usually best to run the test suite

docker-compose.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ services:
3131
max-file: "10"
3232

3333
cardano-node:
34-
image: inputoutput/cardano-node:1.35.2
34+
image: inputoutput/cardano-node:1.35.3
3535
environment:
3636
- NETWORK=${NETWORK:-mainnet}
3737
volumes:
@@ -52,7 +52,7 @@ services:
5252
max-file: "10"
5353

5454
cardano-db-sync:
55-
image: inputoutput/cardano-db-sync:13.0.2
55+
image: inputoutput/cardano-db-sync:13.0.4
5656
environment:
5757
- NETWORK=${NETWORK:-mainnet}
5858
- POSTGRES_HOST=postgres

0 commit comments

Comments
 (0)