Masternode setup


  1. MasterNode statistic
  2. Download PirateCash core from GitHub, Prepare wallet
  3. Exchange to PirateCash, transfer to your wallet, then pay yourself EXACTLY 10 000 PIRATE
  4. Create a Linux Droplet
  5. Connect to Droplet via PuTTY for Windows/Terminal for Mac
  6. Edit masternode configuration file's
  7. Setting up a Tor hidden service
  8. How to fix: "could not allocate vin"

Download PirateCash core from GitHub, Prepare wallet

  • Unzip PirateCash Core file to the location of your choice. You will run the wallet from this location.
  • Encrypt your wallet: Settings -> Encrypt Wallet. Choose a password. Write it down. Restart your wallet.
  • Backup Wallet: File -> Backup Wallet

Exchange anycoin to 10 000 PIRATE

Exchange a minimum of 10 001 PIRATE.

You need an address with EXACTLY 10 000 for a Masternode.

NOTE: You’re exchanging more because:

  1. Exchanges charge you for withdrawals
  2. When you send 10 000 PIRATE to yourself there is a small transaction fee.
  • Create a receiving address: Receive -> New address Send PIRATE from exchange to your wallet.
  • Create an additional address for your PirateCash: Receive -> New address, label this address mn1
  • Copy this address, Click Send tab, paste address on the “Pay To:” line.
  • Type 10000 in the Amount: field. Click Send

Create a Linux droplet on DigitalOcean

  • Register for an account, create new “droplet” – Digital Ocean’s term
  • Select Ubuntu 18.04 x64
  • Select 1 GB/1vCPU – sufficient and only $5/month
  • Select any datacenter region you like. Create!
  • Write down your droplet IP address
  • Check your email for initial VPS root password

Access to your droplet

Access VPS via PuTTY – this will allow you to copy and paste commands to your VPS. The web console will not. Mac users can use Terminal. Launchpad > Search > Terminal > Type: ssh root@IP

  • Download and install PuTTY
  • Default settings are fine. Type IP address in Host box, Type a name your session, click Save for easy future access. Click Open to connect.
  • Login as root. Find DigitalOcean email with default password. Copy and paste your password. You can paste in PuTTY with a right mouse click. NOTE: when pasted, your password will be INVISIBLE. Just hit enter.
  • Upon first login you will be prompted to choose a new password. Write it down.

Masternode configuration file setup

  • Enter RPC console Help-> Debug window –> Console
  • Type: masternode genkey
  • Goto to Droplet and please download archive
  • wget
    tar -xvzf piratecash.tar.gz
  • Create directory mkdir ~/.piratecash
  • Create file ~/.piratecash/piratecash.conf with following content:
  • rpcuser=blabla
  • Start daemon: ./piratecashd
  • Goto back to your Core application and Type: masternode outputs
  • If you properly sent 10000 PIRATE to yourself you will see a long string of numbers, this is your transaction ID, followed by the index number. Copy and paste this to a temporary text file.
  • Click Masternodes -> My Master Nodes
  • Click Create
  • Please fill following fields:
    Alias: mn1,
    PrivKey: 7pN9nLedYATmaGjfSXdsH7JCa6o3aNvpCT86JoSurmNgpZ38iQc (from masternode genkey),
    TxHash: b84e5372539862e6a57e972990783d8be2dadd694677d6b06b8f8c136b83cd9d (from masternode outputs),
    Output index: 0(from masternode outputs)
  • Click Create
  • Click Update
  • Goto Settings->unlock wallet->"remove for staking only", put your password and press "Ok"
  • Select your masternode and click "Start"
  • Lock input:
    Please add line into piratecash.conf:

Congratulations, you’re about to start making some coin. Welcome to PirateCash.

Setting up a Tor hidden service

If you use a PirateCash full node over Tor, then usually it will only be able to make outgoing connections. Therefore, you will only get a maximum of 8 total connections. This is fine, and is not something you usually need to worry about, but if your computer is often online and you want to be a big help to the network, you can run a Tor hidden service in order to accept incoming connections over Tor.

Note that there is no need to forward port 18888 when using a Tor hidden service. The hidden service will cause most firewalls and NAT setups to be bypassed. For this reason, running a Tor hidden service is also a good idea if you want incoming connections but are for some reason unable to forward port 18888.


These instructions are for Linux. It is possible to do on Windows, but the instructions would be rather different. (If you've done it on Windows, consider adding the instructions to this page.)

You need Tor (at least version Figure out where your torrc file is (/etc/tor/torrc is one possibility). This guide assumes default Tor settings. This guide assumes that Tor is running under the user and group tor, which will usually be the case if you install Tor using your distro's package manager. Note that PirateCash does not support hidden service version 3 (ie. long onion addresses).

Add these lines to your torrc:

HiddenServiceDir /var/lib/tor/piratecash-service/
HiddenServicePort 18888

Restart Tor. As root, run cat /var/lib/tor/piratecash-service/hostname. Your onion address will be reported. If it didn't work, then probably your distro's version of Tor doesn't actually use /var/lib/tor for this purpose. You should try to figure out the correct HiddenServiceDir location.

In the following steps, replace ONION_ADDR with the onion address reported above.

Add these lines to your piratecash.conf


If you additionally want PirateCash to only connect out to Tor hidden services, also add this line (not particularly recommended):


Now restart PirateCash. You should eventually get incoming connections via your hidden service.


After upgrade masternode to new version you must reactivate your node but you can see following error:

12:21:21 masternode start-alias MN1
    "alias" : "MN1",
    "result" : "failed",
    "errorMessage" : "could not allocate vin"

How to fix it:

  1. Please change mnconflock=1 to mnconflock=0 in your piratecash.conf
  2. Restart your wallet
  3. Start your nodes
  4. Please change back mnconflock=0 to mnconflock=1 in your piratecash.conf
  5. Restart your wallet