A base library that defines interfaces and modules of the consensus protocol.
To build testing tooling, type make all. Consult the Makefile for individual build options.
commands used and replication instructions are as follows:
- install graphvis with
go install github.com/ofabry/go-callvis@latest(link is https://github.com/ondrajz/go-callvis) - using your package manager: brew, apt, etc.
- please also install graphviz.
- example of how to do this with apt is
sudo apt-get install graphviz; for homebrew on macs you can usebrew install graphviz - run
go-callvis -graphviz -focus=consensusengine ./consensus/consensusengine, where focus denotes the package name and the last argument is the path to the package relative togo.mod .go.modshould be in the same directory as your current working directory from where you should run thego-callviscommand, that is, when you rungo-callvisyour path should be something like the following: the top level of the repo.
To test, type `make test'. Consult the Makefile for individual options.