<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Cave Spectre on Medium]]></title>
        <description><![CDATA[Stories by Cave Spectre on Medium]]></description>
        <link>https://medium.com/@CaveSpectre?source=rss-49d408e0b12b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*oxHM_-3HvtEUPCG47pIRbg.jpeg</url>
            <title>Stories by Cave Spectre on Medium</title>
            <link>https://medium.com/@CaveSpectre?source=rss-49d408e0b12b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 20:45:00 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@CaveSpectre/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Multiple Masternodes: One Coin, One VPS]]></title>
            <link>https://medium.com/@CaveSpectre/multiple-masternodes-one-coin-one-vps-a72832ad5f0e?source=rss-49d408e0b12b------2</link>
            <guid isPermaLink="false">https://medium.com/p/a72832ad5f0e</guid>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[multiple]]></category>
            <category><![CDATA[vps]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[masternodes]]></category>
            <dc:creator><![CDATA[Cave Spectre]]></dc:creator>
            <pubDate>Wed, 01 Aug 2018 02:16:59 GMT</pubDate>
            <atom:updated>2020-09-04T21:00:12.362Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*GuoEDTeUF-FViwTA" /><figcaption>Photo by <a href="https://unsplash.com/@ikukevk?utm_source=medium&amp;utm_medium=referral">Kevin Ku</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p><em>If you aren’t on Vultr yet, please use my referral code: “</em><a href="https://www.vultr.com/?ref=8001629-4F"><em>Get $50 to try out Vultr!</em></a><em>” . If that deal isn’t active anymore; </em><a href="https://www.vultr.com/?ref=7377267"><em>please use my regular referral code</em></a><em>.</em></p><h3>VPS Economics</h3><p>Often I find that people misunderstand the capabilities of a crypto-currency coin, it’s limitations, and how you can best manage your masternodes. While their are some coins that require IPv4 addresses (A.B.C.D format), many support IPv6 (aa:bb:cc::dd format). Even for those IPv4 required coins, you can buy additional addresses for your VPS, but this article is tailored for using the IPv6 addresses you receive for free with your Virtual Private Server (VPS) rental.</p><p>If you have an IPv6 capable coin; you do not need to start an additional VPS to create more masternodes of that coin. You can use IPv6 addresses, and a little bit of linux tuning, to maximize the resources of your VPS; and thus minimize your operating costs.</p><p>One important thing to note however. I highly recommend you maintain at least two VPS servers, in separate data centers and/or regions. Having single points of failure is not good for a coin, nor is it good for your masternode rewards. Downtime should your VPS go down loses you income, as well as makes it very difficult to start the coins back up if your copy of the chain gets corrupted.</p><p>With that said, here’s how to setup multiple masternodes of the same coin on the same VPS. The examples here will be based on a <a href="https://www.vultr.com/?ref=7377267">vultr VPS</a>, with Ubuntu 16.04, and use <a href="https://discord.gg/pZ6Km5K">GambleCoin</a>.</p><p>Good Luck!</p><h3>Crank Up Your VPS</h3><p>First, if you’re not running a swapfile, you’re going to need one. Without a swapfile, you will max out at very few masternodes, and the ones you have will randomly crash and corrupt, causing you to have to reindex your masternode, and having to re-seed your collateral again.</p><p>To check if you have a swapfile, use the swapon command:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/654/1*wmpYAbtVq_vo7zabKPDVXQ.png" /><figcaption>swapon — summary output showing a swapfile exists.</figcaption></figure><p>If you don’t have a swapfile, create one. Most of mine use 6gb swapfiles, and I can generally get 18–25 masternodes running on a single <a href="https://www.vultr.com/?ref=7377267">$5 Vultr VPS</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/431/1*gha8b1MU73ClIkBnRGv0nQ.png" /><figcaption>setting up a 4gb swap file (cut and paste for 6 Gb swapfile is below)</figcaption></figure><pre>dd if=/dev/zero of=/swapfile bs=1024 count=6291456<br>mkswap /swapfile<br>chmod 600 /swapfile<br>swapon /swapfile<br>echo &quot;/swapfile swap swap defaults 0 0&quot; &gt;&gt; /etc/fstab</pre><p>While adding new masternodes to your VPS, keep your eye on both the swap file (via swapon summary) and your diskspace (via df). If your swap file maxes out (Used equals Size), then you will begin to have problems. Also, be aware that many masternode install scripts create a swap file for you, and as such you may have multiple swap files that just eat away at your disk space.</p><p>For the sake of this article, we will assume that the coin you’re working with supports IPv6, and does not have any extra things required, like Sentinel. I also assume you already have one Masternode for the coin.</p><h3>Setting Up IPv6</h3><p>If you don’t yet have IPv6 setup on your VPS, you will need to enable it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gsq5mSs_I-r21ZAAt4xrUQ.png" /><figcaption>Vultr IPv6 setup page</figcaption></figure><p>This gets you your first IPv6 address. Vultr is convenient in that they custom create the “configuration examples”; and it will show you what you want to do in your /etc/network/interfaces file if you want to create more. You can change a lot the number at the end of the IPv6 address; but I try to just stick with modifying the last part of the integer:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/564/1*fg2vxCiLhDzNshKVtTjqaA.png" /><figcaption>interfaces configuration for 3 IPv6 addresses</figcaption></figure><p>Restarting the the network is a piece of cake</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/531/1*gNV_Pz48jSZCYRtfaJcWZQ.png" /><figcaption>/etc/init.d/networking restart to load in your new addresses</figcaption></figure><h3>Preparing Your Config</h3><p>Now that you have your multiple addresses, a little touch-up of your configuration file will save you a lot of time when you use that master node as the base for other masternodes, and make them more capable of being handled with scripts in the future.</p><p>There are 6 fields in your coin configuration file (.coin/coin.conf) that are important. The first two relate to the Remote Procedure Call (RPC) configuration. RPC is the protocol that the coin-cli uses to talk to the coin daemon. The “RPC Allow IP” field limits where RPC commands can come from; and should be set to be the loopback address of your VPS. For IPv4, this address is 127.0.0.1, for IPv6, it is ::1. Once you get the IPv6 one in your configuration file, you won’t need to mess with it anymore. The second is the “RPC Port” field, which tells the coin daemon which port to listen for messages on, and tells the coin-cli which port to send messages to. Each masternode will need to have a unique port.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/268/1*BVzpa_sjDzL54baW-eRtjA.png" /><figcaption>Relevant fields for IPv4</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/474/1*HBOeGFWzVbqINyi_ZCwT0Q.png" /><figcaption>Relevant fields for IPv6</figcaption></figure><p>The next few fields define what address for the daemon to use. By default, a coin daemon will bind to all available addresses on the system. So you will need to make sure you override this default with the “Master Node Address” field, “External IP” field, and “Bind” field, so that one of your Masternodes doesn’t take all the available addresses from the rest of them.</p><p>The final field is the “Masternode Private Key” field, which obviously would have to change for different masternodes; and would definitely be present in your the configuration you are starting with.</p><h3>Cloning and Copying</h3><p>After you understand the relevant fields in your configuration from the previous section, you will be able to create a new data directory for your second masternode, put a new configuration file in it, start the daemon, and let it download the chain all over again. This takes a long time, and hammers the CPU on your system; which puts the rest of your masternodes at risk and can easily overload your swap file. But you don’t need to do that, since you already have a viable copy of the chain on your VPS!</p><p>When you set up to copy a chain from an existing master node, you need to make sure the master node is shut down, so all volatile memory is written to those files. If you have anything in place to restart the masternode, you will need to turn that off during this process as well. It helps to utilize the linux “ps” utility to keep an eye on the daemon for when it actually is completed with it’s shutdown. When you have a number of different masternodes running already, the ‘p’ option of ps, to look just for that Process ID (pid), is far more convenient then grepping for the coin; and you should have that process ID in a file named coind.pid.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/386/1*DGVDsbS82yj2HKPuPyvZDA.png" /><figcaption>shutting down the coin cleanly</figcaption></figure><p>Once you have the masternode shut down, you want to make sure to use the linux “sync” command to make sure everything is written to flash, and then the linux “tar” command (similar to windows Zip) to package up the files. I usually delete some of the unneeded files before I do this (like the debug.log file). As soon as the tar is complete, you can start the coin back up, and as long as you didn’t keep it down for a significant amount of time, the network won’t even have noticed it was down and it will continue to be enabled as soon as it comes back up.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/349/1*q1cycTDfmolXhknTWhlc5g.png" /><figcaption>backup your blockchain for your coin</figcaption></figure><p>Now it’s just a matter of making your clone. Make another .coin directory, go into it, untar your blockchain and edit the coin.conf. <em>(Side note, the same method can be used to clone the masternode onto a different VPS; just copy the tar ball over with SFTP, and don’t forget to copy over the coind and coin-cli executables!)</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/347/1*IfO4EaGUMiG6S3JpW2NO7A.png" /><figcaption>create your new directory, unpack your blockchain, and edit your conf file</figcaption></figure><p>Inside your new coin.conf file, you want to change the IP address to be the one to use for this one, select a new RPC port, and change the private key for the new masternode.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/474/1*HBOeGFWzVbqINyi_ZCwT0Q.png" /><figcaption>conf changes, new ipaddress and a unique rpcport (don’t forget your private key too)</figcaption></figure><p>Once your configuration is done, you can just reference this masternode instance with the -datadir flag on both coind and coin-cli. It should only take a minute or two to sync up the blocks missed while you were making your edits, and then you just start up your masternode in your wallet as you always do!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/660/1*54xdRdLvSreeKLccSJXr0w.png" /><figcaption>Finally… let it rip!</figcaption></figure><p>I hope you find this helpful, and if you have any suggestions or questions, please don’t hesitate to comment or find me on discord: <a href="https://discord.gg/pZ6Km5K">CaveSpectre#1277</a>. This is the first of, what I plan to be, many articles on the management of masternodes; so I invite you to follow me for more!</p><p>If you aren’t on vultr yet, please use one of my referral codes:</p><p>Limited time only! <a href="https://www.vultr.com/?ref=8543303-6G">Get $100 to try out Vultr</a>. After the limited time, <a href="https://www.vultr.com/?ref=7377267">please use this Referral Code</a>.</p><p>If this helps you save some money on VPS costs and you feel the urge to send me a tip, I don’t expect it, but it would most definitely be appreciated. Tip me on discord, or you can send coins to:</p><p>ETH &amp; Tokens: 0xbd389f6622083b967c32026706fde83e599b7cfa<br>BTC: 1LcaRjBWuR9h42wx4Emh9xBMke4rLYyf74<br>PIVX: DTcyfQNg8XBo1XfjcZqx3Ruvwqr565mCMu <br>Veil: sv1qqpsvtgf0rseqesy8338avwm4sgexj6udmqfdwv8flwt9h8xdrq6cacpqv306jfeudhhxypeengs788ypms75ssua3aq8ryg2hptcn3pxndzcqqqwwfvh5</p><p>If you are curious about <a href="https://discord.gg/qtV4HxG">Veil</a>; <a href="https://discord.gg/qtV4HxG">check out their discord</a>!</p><p><strong>Cave Spectre</strong> has been a software engineer for over 25 years; and developing in the cryptocurrency space since 2016. He currently is the Lead Core Developer for Veil. Learn what <a href="http://veil.is/">veil.is</a>!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a72832ad5f0e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Get Your TrillHub Investment Back]]></title>
            <link>https://medium.com/@CaveSpectre/how-to-get-your-trillhub-investment-back-1977275e7f24?source=rss-49d408e0b12b------2</link>
            <guid isPermaLink="false">https://medium.com/p/1977275e7f24</guid>
            <category><![CDATA[ico]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[tlc]]></category>
            <category><![CDATA[trillhub]]></category>
            <category><![CDATA[trillcoin]]></category>
            <dc:creator><![CDATA[Cave Spectre]]></dc:creator>
            <pubDate>Mon, 19 Mar 2018 18:45:04 GMT</pubDate>
            <atom:updated>2018-03-20T17:16:25.701Z</atom:updated>
            <content:encoded><![CDATA[<p>Please note I am in no way affiliated with TrillHub; I only set out to get my money back. Hopefully this helps the rest of you.</p><p>As you may, or may not be aware; the TrillHub ICO did not reach their soft cap. For those that just participated in the airdrop; let it go… the tokens are worthless so no need to worry about if they are in your wallet or sitting in their site. <em>(edit: I noticed they just tried to finalize the ico; so to assume they won’t provide instructions was not fair and thus that commentary has been removed)</em></p><p>So being curious, I dug through the smart code of the contract; and reviewed the code in regards to refunds. Seeing that the creator needed to finalize the ICO and it hadn’t been done yet… I tried to do it myself and the result was successful:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/693/1*ecR-x-K9cnyzv9WeYuy8MA.png" /><figcaption>Transaction to interact with the smart contract to initiate finalize()</figcaption></figure><p>You can see the <a href="https://etherscan.io/tx/0xc3d2b1cbb97105264248975069679c51fb3322fcd98c6041853e8c34b6f8db34">transaction here</a>.</p><p>Checking the TrillHub smart contract, I saw it was successful:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/268/1*T97yqgBK_UgQf0tRJTiiAg.png" /><figcaption>isFinalized now shows True, unlocking the refund code</figcaption></figure><p>Which started the refund deadline:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/329/1*oIOjFVs8AHTkbDbKt4u8Zg.png" /><figcaption>Refund Deadline is September 15th</figcaption></figure><p>So now that I managed to start the smart contract’s refund process; I decided I would be the guinea pig and attempt the refund (I had verified that it would take my tokens, but I hadn’t verified it would find my purchase price and refund me).</p><p>I did this with MyEtherWallet . If you have a different wallet, I can’t provide instructions. If you would like to unlock your personal wallet with MyEtherWallet you are welcome to. I used my encrypted private key on my paper wallet (which I used for the token sale) to access it from MyEtherWallet. You must use the account you used during the token sale, and that has the tokens in it.</p><p>The following is for educational use only. Don’t blame me if it doesn’t work or it screws up. But it’s what I did and you can look at the transaction hashes to confirm. Please note that the smart contract deposited 95% of the ETH from your purchase into the refund vault; so you’ll only get 95% back.</p><ul><li>Open a window to etherscan.io and put the TrillHub Contract in the search. This is the contract address you sent your Ether to during the ICO ( <a href="https://etherscan.io/address/0x4e9d3792ff24babf36b83c0c36113da6714917c6">0x4e9d3792ff24babf36b83c0c36113da6714917c6</a> )</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/968/1*04aUIdHaCt8fwEVYaLaT9g.png" /><figcaption>The TrillCoin (TLC) Contract</figcaption></figure><ul><li>In another browser tab open MyEtherWallet, you want to go into the Contracts Tab, and paste the Trillhub Contract ( <a href="https://etherscan.io/address/0x4e9d3792ff24babf36b83c0c36113da6714917c6">0x4e9d3792ff24babf36b83c0c36113da6714917c6</a> ) into the Contract Address.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/896/1*EWSsJo_56xZqYLNIqcC8ww.png" /><figcaption>Enter the Contract Address in My Ether Wallet</figcaption></figure><ul><li>Return to etherscan.io and the TrillHub contract, Go to the Contract Source tab, and scroll down to the Contract ABI, and select “Copy”</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/873/1*ZH_7lEbWBCT_yE_1xYmkAQ.png" /><figcaption>Contract Source Tab</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/941/1*J16T1Bzgq-0kTYOtJfRLbg.png" /><figcaption>Copy the Contract ABI</figcaption></figure><ul><li>Back in MyEtherWallet you want to paste that Contract ABI into the ABI / JSON Interface section. Don’t worry about the “Existing Contract”, we won’t touch that.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/839/1*U7AthJcRjPRbMKbBGBJDAg.png" /><figcaption>Paste the Smart Contract ABI into the ABI / JSON Interface of MEW</figcaption></figure><ul><li>Next you’re ready to interact with the smart contract (note make sure you have ETH in the wallet for gas money, it will cost transaction fees). Click “Access” and it will bring up the Read / Write Contract section, where you can select the “claimRefund” function</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/575/1*hB8Iu5LicYySJ2tKneU-ug.png" /><figcaption>Accessing the claimRefund() routine of the smart contract</figcaption></figure><ul><li>Lastly you need to access the wallet by whatever means you chose. Since I use a Ledger it’s simple; but for others, I leave that as your challenge to figure out.</li><li>Check ethgasstation.com to see what the current gas rates are, and decide how patient or impatient you are. (I saw the SafeLow was 2 Gwei and I planned to set it to 3 Gwei for the transaction, but I didn’t so it took about an hour). Once you know the Gwei you want to use, select that in MEW.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/578/1*089POolxcj9PdMGVTH-HYA.png" /><figcaption>Selecting a Gwei of 3 for the transaction</figcaption></figure><ul><li>Finally, we want to “write” the transaction. Default seems to set a gas limit of 54625, my transaction used 31325 but I set a really high gas limit just in case (I always do). I saw one run out of gas at 55000; so I would set it for at least 110000. If you’re using coinami; please see the note below the following image.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/805/1*xCPcRt1fsfbk4UEQ_BkE-Q.png" /><figcaption>Leave amount 0, set gas limit at <strong><em>least </em></strong>55000</figcaption></figure><p><strong>(Special note for Coinami users: </strong>When you click “claimrefund” it will prompt you for the amount of ether to send and won’t let you send with 0.0 eth. You must put an amount of ether to send in order to activate the “send” button. You can then erase the number and the “send” button will still be activated with 0.0 eth at which you can click the button to process the transaction. Special thanks to <a href="https://twitter.com/TimothyGraeb1">@TimothyGraeb1</a> for figuring it out!)</p><ul><li>Once you’ve Generated your transaction and done all the other fun stuff of sending your transaction; then it’s just time to watch the TX and be patient. Eventually you’ll see success and your TLC tokens will be removed, and you’ll get [most of] your ETH back</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/765/1*ETFbZ5ktFG6sQi6ZnEFoIg.png" /><figcaption>Smart Contract claimRefund() call, showing the refund</figcaption></figure><p>Feel free to browse my transactions:</p><p><a href="https://etherscan.io/tx/0xc3d2b1cbb97105264248975069679c51fb3322fcd98c6041853e8c34b6f8db34">Smart Contract finalize() call</a></p><p><a href="https://etherscan.io/tx/0xefaebd13eddbdfa3adffdcafe3ead736701709669ecdaba09aea9dc2fc91db24">Refund TX Hash</a></p><p>If this article helped you, I will happily accept donations in ETH or ETH tokens: <a href="https://etherscan.io/address/0xbd389f6622083b967c32026706fde83e599b7cfa">0xBd389f6622083b967C32026706fdE83E599b7cFA</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1977275e7f24" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>