kowala-tech / kcoin

A stable cryptocurrency that algorithmically targets $1 USD using the Kowala Protocol
https://www.kowala.tech/
Other
18 stars 16 forks source link

Retool --dev mode for internal devnet #732

Closed yourheropaul closed 6 years ago

yourheropaul commented 6 years ago

Modified the --dev flag to act a bit like --testnet. It uses the testnet genesis but network ID 1. This will be used for the internal devnet that's in progress.

The testnet chain ID means that it works exactly like the existing testnet (only we can break it without annoying anyone) and the main network ID means that we can test the p2p against all the Ethereum traffic — a reasonable simulation of the main net environment.

Network setup

For anyone who's confused, the networks look like this:

Name Netstats URL Genesis Chain ID Network ID
Main kusd.kowala.tech Main 1 1
Zygote zygote.kowala.tech Testnet 2 2
Dev devnet.kowala.io Testnet 2 1

Usage

You can run dev mode in the same way you normally would:

$ kcoin --dev init && kcoin --dev

or

$ docker run --rm -it kowalatech/kusd --dev