Sign inSign up

rafalsladek/cropcoin

By rafalsladek

Updated almost 8 years ago

cropcoin masternode image

Image
0

401

rafalsladek/cropcoin repository overview

CropCoin

Shell script to install a Cropcoin Masternode on a Linux server running Ubuntu 16.04. Use it on your own risk.

How to generate password?

openssl rand -base64 32 | tr -d "=+/" | cut -c1-64

How to start docker container?

  1. before you start encrypt your wallet
  2. create or select <CROPCOIND_DATA_DIR>
  3. copy your wallet.dat file into <CROPCOIND_DATA_DIR>.
  4. run this command
docker run \
    -it -d \
    -p 17720:17720 \
    -p 17721:17721 \
    -v $(PWD)/<CROPCOIND_DATA_DIR>:/home/cropcoin/.cropcoin \
    -e WALLETPASS=<YOUR_WALLET_PASSWORD>  \
    --name cropcoin-wallet \
    --hostname cropcoin-wallet \
    --restart always \
    rafalsladek/cropcoin:latest

Installation for v1.1.0.0:

wget -q https://raw.githubusercontent.com/zoldur/CropCoin/master/cropcoin.sh
bash cropcoin.sh

Desktop wallet setup

After the MN is up and running, you need to configure the desktop wallet accordingly. Here are the steps:

  1. Open the CropCoin Desktop Wallet.
  2. Go to RECEIVE and create a New Address: MN1
  3. Send 2500 5000 10000 or 20000 CROP to MN1.
  4. Wait for 15 confirmations.
  5. Go to Help -> "Debug Window - Console"
  6. Type the following command: masternode outputs
  7. Go to Masternodes tab
  8. Click Create and fill the details:
  • Alias: MN1
  • Address: VPS_IP:PORT
  • Privkey: Masternode Private Key
  • TxHash: First value from Step 6
  • Output index: Second value from Step 6
  • Reward address: leave blank
  • Reward %: leave blank
  1. Click OK to add the masternode
  2. Click Start All

Multiple MN on one VPS:

It is now possible to run multiple CropCoin Master Nodes on the same VPS. Each MN will run under a different user you will choose during installation.


Usage:

For security reasons CropCoin is installed under a normal user, usually cropcoin, hence you need to su - cropcoin before checking:

CROPUSER=cropcoin #replace cropcoin with the MN username you want to check  
su - $CROPUSER
cropcoind masternode status  
cropcoind getinfo

Also, if you want to check/start/stop cropcoin daemon for a particular MN, run one of the following commands as root:

CROPUSER=cropcoin  #replace cropcoin with the MN username you want to check  
systemctl status $CROPUSER #To check the service is running  
systemctl start $CROPUSER #To start cropcoind service  
systemctl stop $CROPUSER #To stop cropcpoind service  
systemctl is-enabled $CROPUSER #To check cropcoind service is enabled on boot  

Wallet re-sync

If you need to resync the wallet, run the following commands as root:

CROPUSER=cropcoin  #replace cropcoin with the MN username you want to resync
systemctl stop $CROPUSER
rm -r /home/$CROPUSER/.cropcoin/{banlist.dat,blk0001.dat,database,db.log,mncache.dat,peers.dat,smsgDB,smsg.ini,txleveldb}
systemctl start $CROPUSER

Wallet update to 1.1.0.0

Run the following commands as root to update CropCoin to version 1.1.0.0

for crop in $(grep -l cropcoind /etc/systemd/system/*.service | awk -F"/" '{print $NF}'); do systemctl stop $crop; done
rm cropcoind.gz
wget -q https://github.com/zoldur/CropCoin/releases/download/v1.1.0.0/cropcoind.gz
gunzip cropcoind.gz
chmod +x cropcoind
cp cropcoind /usr/local/bin
for crop in $(grep -l cropcoind /etc/systemd/system/*.service | awk -F"/" '{print $NF}'); do systemctl start $crop; done

Donations:

Any donation is highly appreciated

RafalSladek:

CROP: c3HCzXRTNa7U7SCPAZBqdoQZPzEf4MHZPt
BTC: 37c4J4AdM6u4pXQc1SXAAXYGWxDrCR7a34
ETH: 0x69a8f8bE3A6941C842869D10c8484cAC1649d6E3

Zoldur:

CROP: cKH8Gea49ZtNLLV1Q4zcQaFY7K1uQ2ki5s
BTC: 3MNhbUq5smwMzxjU2UmTfeafPD7ag8kq76
ETH: 0x26B9dDa0616FE0759273D651e77Fe7dd7751E01E
LTC: LeZmPXHuQEhkd8iZY7a2zVAwF7DCWir2FF

Tag summary

Content type

Image

Digest

Size

376.4 MB

Last updated

almost 8 years ago

docker pull rafalsladek/cropcoin