This repo has been archived, see polygon-sdk for a more up to date version of the client.
Modular implementation of different stacks of the Ethereum blockchain.
This is a work in progress so architectural changes are expected in the near future. Besides, there exist intentional panics intended to cover areas where the logic is unfinished or the test coverage is not complete.
Starts the Ethereum client for the mainnet:
$ go run main.go agent [--config ./config.json]
The configuration file can be specified either in HCL or JSON format:
{
"data-dir": "/tmp/data-dir"
}
Some attributes can be also set from the command line:
$ go run main.go agent --config ./config.json --data-dir /tmp/local --port 30304 --log-level TRACE
The values from the CLI have preference over the ones in the configuration file.
Start a development chain with instant sealing:
$ go run main.go dev
Generates a test genesis file:
$ go run main.go genesis