- Prerequisite: Golang
- Set configuration file (
conf.json
) $ sh build.sh
// Build project$ ./full
// Initialize full node$ ./light
// Synchronize light node with full node
Name | Description | Default |
---|---|---|
Hostname | [string] Host name | localhost |
Port | [string] Port number | 8081 |
BlockNumber | [int64] The number of blocks | 100 |
Participants | [int64] The number of participants | 100 |
PrintMode | [bool] Print blocks on console | true |
MiningInterval | [int] Mining Interval (sec) | 0 sec |
-
Set
BlockNumber
,Participants
inconf.json
-
Remove old DB directory, if it exists (or rename it)
$ rm -rf chaindata*
-
Run full node
$ ./full
-
Synchronize light node with full node
$ ./light
- See
network/README.md