pastelup is a utility that can install, initialize, start, update, and monitor Pastel Network node, supernode and walletnode.
First, remove existing versions of golang as follows:
sudo apt-get remove --auto-remove golang-go
sudo rm -rvf /usr/local/goThen, download and install golang as follows:
wget https://go.dev/dl/go1.19.3.linux-amd64.tar.gz
sudo tar -xf go1.19.3.linux-amd64.tar.gz
sudo mv go /usr/localNow, edit the following file:
nano ~/.profileAdd the following lines to the end and save with Ctrl-x:
export GOPATH=$HOME/go
export PATH=$PATH:/usr/local/go/bin:$GOPATH/binMake settings effective with:
source ~/.profileCheck that everything is working by running:
go versionThis should return something similar to:
go version go1.19.3 linux/amd64
git clone https://github.com/pastelnetwork/pastelup.git
cd pastelup
makeYou may need to first run:
go mod tidyAll tests are contained in the test/ directory. You can invoke the tests by running
make build-test-img
make <test-walletnode|test-local-supernode|test-local-supernode-service>
This will run the associated script found in test/scripts/ inside a docker container to validate specific functionality of pastelup.
Pastel Network Docs Pastel Network Docs - Types of Pastel installations