Hey Fellas,
I just set up my very first Masternode! With Katana2X - $k2x
Katana is a little coin, used on some tipbots on discord, where I discovered it. I bought a bunch of them at a low price, and wanted them to play around with the masternode... you know... buying coins for a masternode for 10k USD is quite too risky to play around with... So I decided to invest 5 bucks, and just set it up on my debian VPS.
First of all: I do not have Vultr VPS - I got another host, just for decentralizing... You can get them coins on CryptoHub.online (you will need 70000!)
Here come the steps to set this up:
- SERVER: install required libs on the server:
I use a debian server, but feel free to use whatever you want!
apt-get update apt-get install git automake build-essential libtool autotools-dev autoconf pkg-config libssl-dev
apt-get install libboost-all-dev software-properties-common libgmp-dev unzip
add-apt-repository ppa:bitcoin/bitcoin
&& apt-get update
apt-get install libdb4.8-dev libdb4.8++-dev libminiupnpc-dev
I needed to downgrade libssl - you have to look for the specific files.
- SERVER build the wallet:
git clone https://github.com/getdatcrypto/k2x-source.git k2x && cd k2x/src
make -f makefile.unix
build the wallet!
- LOCAL get KatanaQT Wallet
download the KatanaQT Wallet, encrypt it and create a new address (or more, if you want to have more Masternodes)
send exactly 70000 K2X to each of the addresses!
after 10 confirmations go to the debug console and type for each MN you want to build:
masternode genkey
692ZbhexVpq3sysdfgYvhaCKtRpHbykDVuuVuGAkMyUHawWhMGq
and once:
masternode outputs
->{"2c8c27c37c405f16d7afb237885aa95e5d7aad1f420de976279490fd826af62c" : "0", }
- LOCAL edit masternode.conf
in your katana directory create a masternode.conf file and add:
<MN alias> <your MN IP:port> <MN genkey> <output ID> <output_index>
- MN Alias: just a fancy name for your MN
- MN IP:PORT: the IP of the Server and the port, you want this MN to run on. This is not the RPC Port! You will need 2 Ports for every MN you want, I start with 31944 for RPC and 31954 for the first MN - add 31954 here
- MN genkey: one of the results of the genkey command you just typed (for every MN you type masternode genkey and use the key you just generated. Always another one)
- output id: an entry of the outputs command - the long number. Always different!
- output index: the second part of the outputs command: a small integer like 0, 1 or 2 - can be always the same... depends :)
for every entry in the masternode.conf you need:
- another port
- another genkey
- another output ID and index
LOCAL: zip it and send it
zip the whole thing and upload it to the Server. I use linux to linux so I tar.gz them and send it via scpSERVER prepare the wallets
on the Server you just unpack your folder and copy it into different locations. For every masternode you want to start, you have to create a seperate folder.
I use k1, k2, k3... and so on - but maybe, prepare the first one, and copy them afterwardsSERVER katana.conf
edit the katana.conf file, it shoult look like this:
rpcuser=k2x_edit_me
rpcpassword=pass_edit_me
listen=1
server=1
daemon=1
masternode=1
maxconnections=64
port=31954
rpcport=31944
externalip=server_ip:31954
masternodeaddr=server_ip:31954
masternodeprivkey=genkey
Modify the above information:
- Change k2x_edit_me to a username or leave default
- Change pass_edit_me to a secure password (random is recommended)
- Replace server_ip with your VPS address
- Replace genkey with your private key (the genkey command, you remember?)
for each MN you want to add more, you have to count the ports up. (after 10 you have to jump a little...)
but you get the idea?
- SERVER start the demons!
to start the demons, just do this: (start the demon from the build directory)
- /home/you/yourKatanaWalletBuild/src/katanad --datadir=/home/you/k1
- /home/you/yourKatanaWalletBuild/src/katanad --datadir=/home/you/k2
for the other demons, use k2, k3... etc
after they started successfully, you can check them: - /home/you/yourKatanaWalletBuild/src/katanad --datadir=/home/you/k1 getinfo
- /home/you/yourKatanaWalletBuild/src/katanad --datadir=/home/you/k2 getinfo
etc...
LOCAL
restart your wallet, unlock it! And go to the Masternodes Tab. Just start all.
That's it! Check it on mnode.club with your Pubkey of the MasterNodes!TROUBLESHOOTING
- could not allocate vin: unlock your wallet. Check your IPs, ports and masternode.conf
- port already in use: you used the port twice... check it back!
- masternode not in list or unreacheable: open your firewall for them!
sudo iptables -t nat -I OUTPUT -d server_ip -p tcp --dport 31954 -j REDIRECT --to-ports 31945
if you enjoyed this, you are welcome to send me some k2x :) xAiRmQUNRiH6BW47GqRmGqB2jgupXn9aj5
thx to this guide: https://forum.cryptoinfo.net/viewtopic.php?t=642