This project leverages Docker in order to keep dependencies manageable and deployment easy.
- docker
- docker-compose
Chain specification file and global node configs located in:
- configs/mainnet - configurations for DucatusX Mainnet
- configs/testnet - configurations for DucatusX Testnet
-
Clone this repository
-
Create
.env
file and fill it as following example:env.example
- OpenEthereum version must be set as
PARITY_VERSION
in.env
- OpenEthereum version can be set to any stable version, at this moment v3.3.1 provides optimal experience.
- Persistent node files will be saved to path
PARITY_WORKER_PATH
. - Configuration files will be taken from
PARITY_WORKER_PATH
folder.
- Run
source .env
- Copy configuration files:
- Mainnet:
cp configs/mainnet/* $PARITY_WORKER_PATH/
- Testnet:
cp configs/testnet/* $PARITY_WORKER_PATH/
- If neccessary, make additional changes to OpenEthereum configuration (will be located in
<PARITY_WORKER_PATH>/config.toml
) - Start node:
docker compose up -d
- View node logs:
docker compose logs
There can be some issues with synchronization from zero block. Solution for this problem is to run new node from snapshot data Instructions for applying snapshot can be found here: SNAPSHOT.md