What's new
  • Thank you for your input for the last few days regarding the list of exchanges you want to see DSTRA in.
    These are our targets for fundraising going forward. Learn more

Quick Guide to MN Creation (hot-cold, Win-Linux)

serathy

DSTRA Staff
Staff member
#1
WINDOWS wallet (your local wallet)
1) Create a new receive address - let's label it MN1
2) Send 30k to that address and wait for 15 confirmations
3) Once you have those 15 ticks, open Console and type:
Code:
 masternode genkey
Code:
 masternode outputs
Note those two and move to Linux
1) Login as root
2) Type:
Code:
cd /home 
mkdir dstra 
cd ./dstra 
wget https://github.com/DSTRACoin/dstra/releases/download/v1.0.0/dstra2-v1.0.0-linux-amd64.tar.xz 
tar -xJf dstra2-v1.0.0-linux-amd64.tar.xz
Then launch daemon ->
Code:
 ./dstrad
It will show you that you need to set up few things in the config
So:
- copy that rpcs that it shows you
- nano /root/.dstra2/dstra.conf
- right click (so it will paste those rpcs)
- server=1
- daemon=1
- masternode=1
- externalip= here you have to type the IP of your VPS and then port :5269 (like: 198.162.11.11:5269)
- masternodeprivkey= here you have to paste the code recieved from local wallet for masternode genkey command
- press Ctrl+X, save

Kill the deamon (or switch it off), start again (so it will get proper config loaded)

Then move back to your Win wallet, close it, go to %APPDATA% and edit masternode.conf and type there:
<Name of Masternode(Use the name e.g. MN1)> <Unique IP address>:5269 <masternodeprivkey that was generated> <masternodeoutput result> <The number after the long line in masternodeoutput - it will be 0 or 1>
for example: MN1 31.14.135.27:5269 892WPpkqbr7sr6Si4fdsassadasdasdasdasdah c8f496asdasdasdasdasdasdasdasdasdasd73e7331db8ce018716999 1
start Win wallet, go to MN tab and click on your MN -> start alias
you should get info 'masternode successfully started'
 
#3
Keep in mind to forward the port on the router since this is not mentioned above (it was mentioned in the other MN guide)
When I completed the guide I could not get it started, after a lot of debugging together with Serathy we finaly found it.
So I used Windows wallet where the coins are and a Pi to be the masternode.
In the end got it started by using the console -> startmasternode all false
 

defc0de

Junior Member
#4
Thanks for this, I am looking to create a masternode and see the reward vs cost ratio. Just waiting to get a few more coins from CREX24 and the airdrop.
 
#5
It is about to be more profitable, but in the future the age of the masternodes might weigh in to the profites so the earlier you get it running...
Altough not sure about how this is exactly...
 

chipr

DSTRA Moderator
Staff member
#6
Then launch daemon ->
Code:
./dstrad
It will show you that you need to set up few things in the config
So:
- copy that rpcs that it shows you
- nano /root/.dstra2/dstra.conf
- right click (so it will paste those rpcs)
- server=1
- daemon=1
I have never used a daemon, just windows for many years with local stack at times. So when you say, "It will show you that you need to set up few things in the config", I assume you are speaking of the dstra.conf file that was created on the linux system: /root/.dstra2/dstra.conf (from above quote)?
-- What would the dstra.conf file look like on the Windows wallet for this setup?
-- What would the masternode.conf file look like on the Windows wallet for this setup, and is there also one in the linux setup or just the Windows wallet?


Kill the deamon (or switch it off), start again (so it will get proper config loaded)
To do this, do you mean to just edit the conf file just created to change the following line:
daemon=0
and then change it back to:
daemon=1
... that's it?
 

serathy

DSTRA Staff
Staff member
#7
-- What would the dstra.conf file look like on the Windows wallet for this setup?
-- What would the masternode.conf file look like on the Windows wallet for this setup, and is there also one in the linux setup or just the Windows wallet?
All depends on the setup you want to achieve - if you run it in a single wallet, then Twthmoses' guide comes handy:
Quick guide to setup Dstra Masternode https://forum.dstra.io/threads/quick-guide-to-setup-dstra-masternode.1025/

If you want to run it on two separate Win instances, then there is no much difference - as all files should be done in the same way, the only difference is the location of the .conf files (%APPDATA%)

As for deamon kill - basically you need to shut down the wallet and open it again to reload .conf changes.