-
Notifications
You must be signed in to change notification settings - Fork 10
SCRIV Masternode Setup Guide COLD WALLET
Code - any input or output.
Recommendation - good practices for easier use.
Important - thing to pay additional attention.
- VPS (Virtual Personal Server) with Linux-based OS;
- Last version of SCRIV wallet;
- 100 000 SCRIV coins.
This guide will show how to setup Vultr VPS, but you can use any other service.
- Visit Vultr website and create an account: https://www.vultr.com/?ref=7297544.
- Go to “Billing” and use any convenient method to top-up your account (10USD will be enough for first time).
- Go to “Servers” and press “+” (top right corner) to deploy new server.
- Choose server location (You can choose closest to you) -> Choose server type (Ubuntu 14.04) -> Choose server size (Server priced at 5$/mo usually enough) -> Enter server name or leave it blank -> Press “Deploy now”.
- Server will be deployed in a while.
- Go to server’s details page. You will see server’s IP Address, Username and Password.
- To access VPS download and install Putty.
https://github.com/ScrivNetwork/scriv/releases
Launch scriv-qt.exe.
If “Windows protected your PC” will pop-up, press “Learn more” -> Press “Run anyway”.
Leave default or set custom directory for ScrivCore folder.
Wait for wallet to get fully synchronized. It will take a while, depends of network condition and blockchain length:
Go to “Setting” -> “Options” -> “Wallet” -> In “Expert” section switch on “Enable coin control features” and “Show Masternodes Tab” -> Hit “OK”:
Inside wallet go to “Settings” -> Press “Encrypt wallet”.
In appeared window type and repeat password -> Press “OK” -> Read warning and agree, pressing “OK”.
Your wallet will be closed.
Through Windows Explorer navigate to ScrivCore folder (by default its located in C:\Users\*YOUR_USERNAME*\AppData\Roaming\ScrivCore).
Backup wallet.dat to the safe place (External HDD, cloud storage, etc).
Go to “Receive” tab -> Enter any masternode name in “Label” field -> Press “Request payment” button.
“Request Payment” windows will pop-up. Press “Copy address” button -> Press “Close” button.
Go to: “Send” tab -> Right-click to “Pay to” field -> “Paste”
Your masternode’s name will appear in “Label” field.
Type “100000” in “Amount” field -> Hit “Send button”
“Unlock wallet” window will appear -> Type your password -> Hit “OK”
“Confirm send coins” window will appear -> Check all requisites and Press “Yes”
Wait for 6 network confirmations. You can check it by proceeding to “Transactions” tab and double-clicking on your transfer transaction. Wait for status to got 6+ confirmations, and 
Go to “Tools” -> ”Debug console”
Type masternode genkey -> Copy and safe the response to text document.
Type masternode outputs -> Copy and safe the response to text document.
Go to “Tools” -> Press “Open Wallet Configuration File”. Notepad will be opened.
Wright following lines:
rpcallowip=127.0.0.1
rpcuser=type_any_username
rpcpassword=type_any_password
server=1
listen=1
port=7979
externalip=type_your_vps_ip:7979
masternode=1
masternodeaddr=type_your_vps_ip:7979
masternodeprivkey=type_your_masternode_key
Save and close this file.
Go to “Tools” -> Press “Open Masternode Configuration File”. Notepad will be opened.
Wright following lines:
your_mn_name your_vps_ip:7979 your_masternode_key your_collateral_output your_index
Save and close this file.
Close SCRIV wallet.
Open Putty and login to your VPS as root.
If your VPS has <1GB of RAM, then run below commands one by one:
cd /
sudo dd if=/dev/zero of=swapfile bs=1M count=3000
sudo mkswap swapfile
sudo swapon swapfile
sudo nano etc/fstab
"Nano editor" will be opened. Paste this line in the end of the file:
/swapfile none swap sw 0 0
To save hit "Ctrl+O" -> Hit "Ctrl+X".
To setup Firewall run below commands one by one:
sudo ufw disable
sudo ufw default allow outgoing
sudo ufw default deny incoming
sudo ufw allow openssh
sudo ufw allow ssh/tcp
sudo ufw limit ssh/tcp
sudo ufw allow 7998/tcp
sudo ufw allow 7979/tcp
sudo ufw logging on
sudo ufw enable
Install Fail2Ban:
sudo apt-get install fail2ban -y
sudo service fail2ban start
To install dependencies run below commands one by one:
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get dist-upgrade -y
sudo apt-get install nano htop git -y
sudo apt-get install build-essential libtool automake autoconf autogen libevent-dev pkg-config -y
sudo apt-get install autotools-dev autoconf pkg-config libssl-dev -y
sudo apt-get install libssl-dev libevent-dev bsdmainutils software-properties-common -y
sudo apt-get install libgmp3-dev libevent-dev bsdmainutils libboost-all-dev -y
sudo add-apt-repository ppa:bitcoin/bitcoin -y
sudo apt-get update
sudo apt-get install libdb4.8-dev libdb4.8++-dev -y
sudo apt-get install libminiupnpc-dev -y
To install SCRIV wallet below commands one by one:
cd
sudo git clone https://github.com/ScrivNetwork/scriv.git
cd scriv
sudo chmod 755 autogen.sh
sudo ./autogen.sh
sudo ./configure
sudo chmod 755 share/genbuild.sh
sudo make
Wait for process to finish. It can take 20-30 min.
cd src
sudo ./scrivd -daemon
sudo watch ./scriv-cli getinfo
Wait for a wallet to synchronize all blocks. When blocks value will be equal to last block at Block Explorer, that means, you are ready to continue the setup.
Hit "Ctrl+C" at your keyboard.
Now, Navigate and configure scriv.conf:
cd ~/.scrivcore/
sudo nano scriv.conf
"Nano editor" will be opened. Paste this lines:
server=1
listen=1
port=7979
externalip=type_your_vps_ip:7979
masternode=1
masternodeaddr=type_your_vps_ip:7979
masternodeprivkey=type_your_masternode_key
To save hit "Ctrl+O" -> Hit "Ctrl+X".
Restart your Linux VPS wallet:
sudo ~/scriv/src/scriv-cli stop
Wait ~60 sec.
sudo ~/scriv/src/scrivd -daemon
Enabling masternode auto-restart upon VPS reboot:
crontab -e
You may be prompted for which text editor to use. Select your preference.
At the end of the file, enter:
@reboot /root/scriv/src/scrivd -daemon >/dev/null 2>&1
To save hit "Ctrl+O" -> Hit "Ctrl+X"
To test this configuration, reboot your server with:
sudo reboot
When it comes back online, wait a few minutes, and then check to see that the masternode is running:
ps ax | grep scriv
Restart wallet.
After wallet launch and synchronization, go to “Masternodes” tab.
You will see your masternode with “MISSING” status.
Right-click it and press “Start alias” -> Confirm by clicking “Yes” -> If everything is setted up fine, you will have “Successfully started masternode” message -> Hit “OK”.
In several hours you masternode will start to receive rewards.
- Generate an address
- Get connections to wallet
- Encrypt the wallet
- Backup the wallet
- Backup the Private Keys
- Restore from the Private Key
- Synchronize with a snapshot file
Wallet compilation
Masternodes
Mining
- Windows OS
- Linux OS







