README: update with workshop links and block import examples

Fix some heading along the way.
This commit is contained in:
Roman Khimov 2020-04-27 16:24:21 +03:00
parent 24675d0688
commit 92a99624c4

View file

@ -67,6 +67,8 @@ Build the **neo-go** CLI:
make build make build
``` ```
### Running
Quick start a NEO node on the private network. This requires the [neo-privatenet](https://hub.docker.com/r/cityofzion/neo-privatenet/) Docker image running on your machine. Quick start a NEO node on the private network. This requires the [neo-privatenet](https://hub.docker.com/r/cityofzion/neo-privatenet/) Docker image running on your machine.
``` ```
@ -90,6 +92,26 @@ Available network flags:
- `--privnet, -p` - `--privnet, -p`
- `--testnet, -t` - `--testnet, -t`
#### Importing mainnet/testnet dump files
If you want to jump-start your mainnet or testnet node with [chain archives
provided by NGD](https://sync.ngd.network/) follow these instructions:
```
$ wget .../chain.acc.zip # chain dump file
$ unzip chain.acc.zip
$ ./bin/neo-go db restore -m -i chain.acc # for testnet use '-t' flag instead of '-m'
```
The process differs from the C# node in that block importing is a separate
mode, after it ends the node can be started normally.
## Smart contract development
Please refer to [neo-go smart contract development
workshop](https://github.com/nspcc-dev/neo-go-sc-wrkshp) that shows some
simple contracts that can be compiled/deployed/run using neo-go compiler, SDK
and private network.
# Developer notes # Developer notes
Nodes have such features as [Prometheus](https://prometheus.io/docs/guides/go-application) and Nodes have such features as [Prometheus](https://prometheus.io/docs/guides/go-application) and
[Pprof](https://golang.org/pkg/net/http/pprof/) in order to have additional information about them for debugging. [Pprof](https://golang.org/pkg/net/http/pprof/) in order to have additional information about them for debugging.
@ -103,7 +125,7 @@ In `config/protocol.*.yml` there is
``` ```
where you can switch on/off and define port. Prometheus is enabled and Pprof is disabled by default. where you can switch on/off and define port. Prometheus is enabled and Pprof is disabled by default.
# Contributing ## Contributing
Feel free to contribute to this project after reading the Feel free to contribute to this project after reading the
[contributing guidelines](CONTRIBUTING.md). [contributing guidelines](CONTRIBUTING.md).