1.6 KiB
1.6 KiB
NEO-GO consensus node
Neo-go node can act as a consensus node. It uses pure Go dBFT implementation from nspcc-dev/dbft.
How to start your own privnet with neo-go nodes
Using existing Dockerfile
Prerequisites
docker
docker-compose
go
compiler
Instructions
You can use existing docker-compose file located in .docker/docker-compose.yml
:
make env_image # build image
make env_up # start containers
To monitor logs:
docker-compose -f .docker/docker-compose.yml logs -f
To stop:
make env_down
To remove old blockchain state:
docker volume prune
Start nodes manually
-
Create a separate config directory for every node and place corresponding config named
protocol.privnet.yml
there. -
Edit configuration file for every node. Examples can be found at
config/protocol.privnet.docker.one.yml
(two
,three
etc.).- Note that it differs a bit from C# NEO node json config: our
UnlockWallet
contains an encrypted WIF instead of the path to the wallet. - Make sure that your
MinPeers
setting is equal to the number of nodes participating in consensus. This requirement is needed for nodes to correctly start and can be weakened in future. - Set you
Address
,Port
andRPC.Port
to the appropriate values. They must differ between nodes. - If you start binary from the same directory, you will probably want to change
DataDirectoryPath
from theLevelDBOptions
.
- Note that it differs a bit from C# NEO node json config: our
-
Start all nodes with
neo-go node --config-path <dir-from-step-2>
.