Go to file
Alexander Kolotov 17ec55da2a Docker environment support 2019-03-19 13:44:23 +03:00
.dockerignore Docker environment support 2019-03-19 13:44:23 +03:00
.gitignore Initial commit 2019-03-19 13:08:48 +03:00
Dockerfile Docker environment support 2019-03-19 13:44:23 +03:00
README.md Docker environment support 2019-03-19 13:44:23 +03:00
classic_aura.json Initial commit 2019-03-19 13:08:48 +03:00
classic_aura.toml Initial commit 2019-03-19 13:08:48 +03:00
docker-compose.yml Docker environment support 2019-03-19 13:44:23 +03:00
prepare-chain.sh Initial commit 2019-03-19 13:08:48 +03:00

README.md

Local Classic testnet

This configuration files allow to set up a local testnet with the EVM parameters similar to ETH Classic chain. This could be useful if you need to test your DApp locally before usage of Kotti chain or deploying the application to ETH Classic network.

Ethereum Parity client needs to be insalled on the system to deploy the local testnet.

The genesis file configures AuRa consesus, the Parity client configuration file runs the node to produce new blocks every second. The node will accessible through JSON RPC. IPC is disabled.

Pre-configuration

Prior to run the Parity client, it is necessary to perfom pre-configuration step to generate the block issuer account.

Run ./prepare-chain.sh script to use a default password for the block issuer. It is possible to specify the password as a parameter if needed. E.g. ./prepare-chain.sh 'p@55w0rd'.

$ ./prepare-chain.sh 
No password provided. Default password "C1@55ic" will be used.

New block issuer: 0x5c8075372b4ad60cc353bfab335ad71741002aa1

Modify classic_aura.json to extend the list of prefunded accounts.
Then run the node with the command "/opt/parity/parity --config classic_aura.toml".

If the Parity client is not accessible through the environment variable $PATH, the environment variable PARITY can be used to define full path to the Parity client:

$ env PARITY=./parity ./prepare-chain.sh 'N0P@5s'
New block issuer: 0x35c3317d90ca430b6bc4c53098839025dd7e5382

Modify classic_aura.json to extend the list of prefunded accounts.
Then run the node with the command "./parity --config classic_aura.toml".

Prefunded accounts

Go to the bottom of the genesis file and add accounts that will have some ether prefunded.

Run the node

As soon as the block issuer configured, run the node with:

parity --config classic_aura.toml

Run the docker container

The docker container can be used to integrate the local testnet in your testing environmnet. Please refer to example of the Docker Compose configuration file for reference.

Prior to running the container, go to the bottom of the genesis file and add accounts that will have some ether prefunded.

To try the docker container, invoke:

$ docker-compose up --build

To stop the container:

$ docker-compose down