Installation

Install Go

Go 1.15+ is required.

Install the panacead

If you want to install the panacead binary to run your node or to communicate with other nodes, please clone the panacea-core project and build it.
1
# Make sure to checkout the correct branch.
2
git clone -b v2.0.2 https://github.com/medibloc/panacea-core
3
cd panacea-core
4
make install # All binaries are installed in $GOPATH/bin
Copied!
Verify that the panacead binary is installed successfully.
1
$ panacead version
2
2.0.2
Copied!

Import panacea-core as a Go dependency

If you want to develop Go applications by importing the panacea-core, you cannot run go get github.com/medibloc/panacea-core/v2 directly due to the design of Go Modules , which doesn't honor replace directives in the go.mod of the panacea-core.
As a workaround, please add replace directives in your go.mod as below.
1
module your.com/yours
2
3
go 1.16
4
5
replace (
6
github.com/gogo/protobuf => github.com/regen-network/protobuf v1.3.3-alpha.regen.1
7
google.golang.org/grpc => google.golang.org/grpc v1.33.2
8
)
Copied!
Then, you can go get the panacea-core.
1
go get github.com/medibloc/panacea-core/v2
Copied!
Last modified 2mo ago