Mn Guide
User Manual:
Open the PDF directly: View PDF .
Page Count: 6
Download | |
Open PDF In Browser | View PDF |
Yet Another Odin Masternode Guide by: mrblister This guide will get your masternode (MN) up and running in no time. It assumes you have already have an Ubuntu VPS up and running, that you can log into it via a ssh key. There are multiple guides and youtube videos on how to do this. 1. HOT WALLET SETUP The “hot wallet” is the MN wallet running on your remote VPS. It never actually holds any ODIN, but it is the wallet that is always connected 24/7 to the internet and actually processes MN transactions. There are many ways to set up the hot wallet (for example, compiling from source or using docker). I’ll use the simplest method (at least in my mind) which is just to copy over the binary files directly from the official Odin github repository. In general terms, what you will do is connect to the VPS and then use a script that I wrote to do all the setup for you. 1.1. Log Into VPS Most likely your VPS was created with only the administrative account ’root’. To log into the VPS you need to do so as root. From your local terminal (command line), use the following command with the ip address of your VPN (press enter after to execute it): ssh root@vpn.ip.address The first time you log in, it will ask you if you want to store that address as a trusted one. Type “yes”. You might also be asked to enter your ssh passphrase, depending on whether or not you configured your ssh key with one. If so, type your passphrase and press enter. 1.2. Odin Headless Installation and MN Configuration Here, you will download a script and run it. This script will: • Create a swap file (this helps low ram VPSs). • Downloads the odin binary files (executable files, like *.exe in Windows) and puts them in the right place. 2 • Generate a masternode private key. • Set up the odin configuration file for MN operation. • Start the masternode for you. Start by downloading the script. From the VPS terminal (you should be logged into the VPS), execute the following two lines: wget https://raw.githubusercontent.com/odinblister/odin/master/setup.bash bash setup.bash When prompted, enter the IP address (double check to not make any mistakes). The script will finish and give you a masternode private key (starts with a number “5”), as well as repeat the IP address you entered. Copy these two things down somewhere because you will need them for the next part. That’s it! It will take a few minutes for the MN to initialize, but you don’t have to wait. Notes • The masternode private key is NOT the same thing as a regular crypto key. You can’t use this key to access or transfer any coins. It is just a label that will be used to pair the hot and cold wallets to each other. Never send any coins to this key. • You can check your MN status with the command odin-cli masternode status Initially this command’s output will say that the MN isn’t ready. Eventually (5 minutes or so), if you try again, it will return the following: error: {"code":-1,"message":"Masternode not found in the list of available masternodes. Current status: Not capable masternode: Hot node, waiting for remote activation."} This means your MN is set up and ready to go. Regardless, you don’t need to wait. You can proceed directly to the next step. 3 2. COLD WALLET SETUP This part is done from your local machine, using the ODIN Core graphical user interface (gui) wallet. You will need to enter a few commands into the debug console. After starting the ODIN Core wallet, you can get to the debug console from the menu (“tools” → “Debug Console”). 2.1. Generate an ODIN Address to Send Coins To To lock the coins for MN staking, you will need to send exactly 25 000 coins to yourself. To do so, you need a new address to send to. This address will still be controlled by your local wallet, but the trick is then to mark the transaction with the MN private key. When this is done, the wallet will know these coins are reserved for your MN. getaccountaddress mn01 This should give you an ODIN address. Make sure it starts with a small letter “o”. You can choose any label you want for that address instead of mn01. 2.2. Send Yourself 25 000 Coins and Get Transaction Details Click the “leaving bird” icon and fill in the “Pay To” field with the ODIN address you just created. The “Label” field should automatically populate with the label you chose in the previous step (if not, you entered the address wrong). Once you have sent the coins, check the transaction history by clicking the top “Chest” icon. You will see your transaction at the top of the list. Notice that the “amount listed” is a very small deduction. Since you are sending the coins to an address generated by your wallet, the net result of sending the coins is just that you paid the transaction fee. At first the transaction will be unconfirmed, and you need to wait a couple of minutes until there is at least one confirmation. When you have one, double click the transaction to see the details. 4 Record the transaction ID in the same place you put the masternode key and IP address from step 1.2. You are almost done! The last thing you need is the “outputidx” of this transaction. This is a number that is usually either 0 or 1. Unfortunately it’s not always the same as the “Output index” shown in the transaction details window. To get it, go back to the debug console and type masternode outputs This will give you a list of “txhash” and “outputidx” pairs. Find your transaction ID in this list (transaction ID = txhash), along with the matching outputidx. Most of the time this outputidx will be the same as the one from the transaction details window, but sometimes it’s not! Record the outputidx. Now you are ready to put all these things into the masternode configuration file. 2.3. Edit the Masternode Configuration File and Restart the ODIN Core Wallet Now you have all the information you need to link the VPS masternode hot wallet that you set up in section 1 to the transaction you just did above. Open the masternode.conf file from the ODIN Core Wallet menu (“Tools” → “Open Masternode Configuration File”) and add a new line for your new masternode with all the info you have collected, using this format::22100 where, is the label you gave the ODIN address you created, is your VPS IP address from section 1. The port :22100 has to always be there, from section 1, starts with a “5” always, and are the transaction details from sending 25 000 ODIN. If you have set up three masternodes (by going through these steps three times), your masternode configuration file will look something like this: Once you are done, save your changes, and restart the ODIN Core wallet. Just close the wallet and open it again. 5 2.4. Starting Your Masternode Once you have re-launched the ODIN Core wallet, click on the battle axe icon circle on the bottom left. This will open up the MN section of the wallet (if for some reason it is missing, go to “Settings” → “Options” → “Wallet Tab” → and check the “Show Masternodes Tab” option. In the MN tab, you should now see your newly added MN. It’s status will be “Missing”. Click the “Start Missing” button to start it. Alternatively, you can select it and press “Start Alias”. You should then get a message “successfully started masternode”. Congratulations, you are done! Almost... You’ll notice that the “Active” time stays at 00:00:00:00 for a very long time. It will take about 6 hours for the coins to “mature” and for your MN to start staking. When the coins in the node have matured long enough (the 6 hours), the status will change from “Active” to “Enabled”. Oct 15 Update: It seems that with more total masternodes in the chain, it takes a lot longer for the coins to mature. Users are reporting that they are seeing their first rewards 20 hours after starting a new masternode. 2.5. Checking to see if your masternode has actually started Follow step 1.1 to log back into your VPS. Then check on your MN status with the command odin-cli masternode status if all went well, you should see a message like { "txhash": "cbc4sd8f78s9duifhw8erwe87yfhsdoufs6d7f79sd7fed", "outputidx": 0, "netaddr": "199.99.123.210:22100", "addr": "oZuSdfjhsdf87sd879709874kx", "status": 4, "message": "Masternode successfully started" } If you still get a message saying it is a hot node waiting for activation, then wait 10 minutes and try starting the masternode again from the ODIN Core wallet (even if the activation seemed to have been succesful in the previous step). Try checking the masternode status in the VPS again. Repeat these steps until it works. It seems like it can sometimes take a long time for the hot and cold wallets to find each other. 6 2.6. Notes • The number of masternodes is shown in the information tab (tools → information) of the ODIN Core wallet. • If there are N total masternodes, a single masternode should get a stake every N minutes, on average. • Remember, all you coins are “stored” in the cold wallet (the coins are actually on the blockchain). You never send any coins to the hot wallet on the VPS. • Once you have set up your masternodes, you can close your cold wallet and even shut off your home computer. The masternodes living on your VPS will keep on staking away. Whenever your cold wallet goes back online, it will receive all the stakes it missing from your masternodes and update your ODIN total. • To unlock the coins staked by your masternode, remove that masternode from the masternode configuration file. You can simply “comment out” that masternode line by adding a # in front and saving the file. When you restart your ODIN Core wallet, the masternode will be gone from your list and you can then spend the coins. You should also stop the associated masternode on the VPS from staking by logging in to its VPS and executing odin-cli stop.
Source Exif Data:
File Type : PDF File Type Extension : pdf MIME Type : application/pdf PDF Version : 1.5 Linearized : No Page Count : 6 Producer : pdfTeX-1.40.18 Creator : TeX Create Date : 2018:10:15 00:03:21-06:00 Modify Date : 2018:10:15 00:03:21-06:00 Trapped : False PTEX Fullbanner : This is pdfTeX, Version 3.14159265-2.6-1.40.18 (TeX Live 2017/Debian) kpathsea version 6.2.3EXIF Metadata provided by EXIF.tools