Skip to content

Instantly share code, notes, and snippets.

@himu007
Last active January 10, 2023 10:01
Show Gist options
  • Save himu007/dce30eaf13e342e4ac07261b18462ab1 to your computer and use it in GitHub Desktop.
Save himu007/dce30eaf13e342e4ac07261b18462ab1 to your computer and use it in GitHub Desktop.
Pirate Wallet Start Guide for a fresh Linux server

Step #2: Install the PirateChain wallet and Bootstrap.

SSH into your non-root user.

Enter these commands one line at a time to create the PirateChain User Data Folder.

cd ~/
mkdir -p /home/$USER/.komodo/PIRATE && chmod 755 /home/$USER/.komodo/PIRATE

Download the PirateChain Bootstrap with the following command

cd ~/.komodo/PIRATE
wget -N --no-check-certificate --progress=dot:giga --continue --retry-connrefused --waitretry=3 --timeout=30 https://eu.bootstrap.dexstats.info/ARRR-bootstrap.tar.gz

Extract the Bootstrap into the folder we made:

cd ~/.komodo/PIRATE && tar -xzvf ARRR-bootstrap.tar.gz

Now let's Download the PirateChain Wallet. Make sure to download the latest version for your OS always. This guide is using Ubuntu as example. As of writing the guide, the latest version is 0.5.6.

cd ~/
wget --no-check-certificate --content-disposition https://github.com/PirateNetwork/pirate/releases/download/v5.6.0/pirate-cli-ubuntu1804-v5.6.0.zip
unzip pirate-cli-ubuntu1804-v5.6.0.zip
mv pirate-cli-ubuntu1804-v5.6.0 pirate

Now we'll fetch the params and start the PirateChain Wallet:

cd ~/pirate
wget https://raw.githubusercontent.com/PirateNetwork/pirate/master/zcutil/fetch-params.sh
chmod +x fetch-params.sh
./fetch-params.sh
./pirated &

Please Note: It will typically take 10-15 minutes for the wallet to start up, after that it will do a few lines of dots ... When that finishes your wallet will start syncing blocks from network. The bootstrap we used can be about 24 hours behind.

You can check all progress by tailing the debug.log file with the following command:

tail -f ~/.komodo/PIRATE/debug.log

You can check the current block height on the Pirate Block Explorer, once your wallet has reached the current block height open a second SSH command line and execute the following commands:

~/pirate/pirate-cli getinfo

If successful you'll receive a list of the current block stats and wallet info.

Always use the following command to stop the wallet daemon. Abruptly closing the daemon can corrup the wallet.dat:

~/pirate/pirate-cli stop

Please note: You must let the PirateChain wallet fully shut down before restarting the server. Shutting down the wallet while it is syncing with the blockchain can corrupt the block files, and force you to completely resync the entire blockchain all over again.

To verify if the wallet has fully stopped, you can use the following command:

tail -f ~/.komodo/PIRATE/debug.log

You should see Shutdown: done at the last line. This means, the wallet daemon has shut down gracefully.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment