Commit 5820d4d8 authored by squbs's avatar squbs

remote masternode build instructions

parent 0fdceec1
## REMOTE MASTERNODE BUILD NOTES
#### System requirements
##### Remote:
An Ubuntu 16.04 64bit server is recommended with at least 768MB
of memory and 10GB space available when running a Masternode.
##### Local:
Windows 7 64 bit or newer, or Ubuntu 16.04 64bit Desktop.
At least 2048MB of memory and 10GB space available for chain data.
________________________________________________________________________________
#### Local Machine
Note that the following steps can be performed via command line using the *straks-cli*
instead of using the STRAKS Qt wallet.
1. Download latest version of STRAKS Qt client for windows or linux
https://github.com/straks/straks/releases
2. Create straks.conf file with the following contents:
```
rpcallowip=127.0.0.1
rpcuser=YourUserName
rpcpassword=YourRPCPassword
server=1
daemon=1
listen=1
```
Place the configuration file in its correction location:
For Linux: ${HOME}/.straks/straks.conf
For Windows: %appdata%\\straks.conf
3. Start STRAKS Qt gui client and allow the chain to sync
4. Go to Help --> Debug Window --> Console and enter: `getaccountaddress 0`
Copy the generated address to a text file.
5. Enter: masternode genkey
Copy the generated private key to a text file.
5. Send exactly 15,000 STAK in a single transaction to the address generated from Step 4
6. After you have received the STAK from Step 5, go to Help --> Debug Window --> Console and enter: `masternode outputs`
You should see output similar to below indicating that the node has recognised coins as eligible to be used
as collateral for a Masternode.
```
{
"d565175089b0f4dce2294dc003799ae0c9cb703cadd996a0a4224458f176eb6e": "0"
}
```
7. Shutdown the STRAKS Qt wallet
8. Modify the straks.conf and add the lines noted here:
```
rpcallowip=127.0.0.1
rpcuser=YourUserName
rpcpassword=YourRPCPassword
server=1
daemon=1
listen=1
# **** add the following new lines ****
maxconnections=256
masternode=1
masternodeprivkey=<your_private_key_generated_in_step_5>
externalip=<external_ip_of_your_remote_node>:7575
promode=1
```
#### Remote Machine
1. Download latest version of STRAKS linux amd64 release
https://github.com/straks/straks/releases
2. Create straks.conf file with the following contents:
```
rpcallowip=127.0.0.1
rpcuser=YourUserName
rpcpassword=YourRPCPassword
server=1
daemon=1
listen=1
maxconnections=256
promode=1
```
3. Create masternode.conf file in the same directory as your wallet.dat. The masternode.conf
format consists of a space seperated text file. Each line consisting of an alias, ip address
followed by port, masternode private key, collateral output transaction id and collateral
output index (matching the result of Local Machine Step 6)
```
alias 127.0.0.1:7575 masternode_private_key collateral_output_txid collateral_output_index
e.g.
mn01 127.0.0.1:7575 92bHZcSpmT6UinHzR8VgaVZVgBVfbDRCh1WogXXXXXXtf9pyZ4Y d565175089b0f4dce2294dc003799ae0c9cb703cadd996a0a4224458f176eb6e 0
```
4. Start STRAKS daemon using command
```
./straksd
```
You should get the following expected output:
```
Missing masternode input, please look at the documentation for instructions on masternode creation
```
5. Then enter the following command using *straks-cli*
```
./straks-cli masternod debug
```
#### Local Machine
1. Now back on your local machine, start the STRAKS Qt client
2. Go to Help --> Debug Window --> Console and enter: `masternode start`
Your should get the following message:
```
successfully started masternode
```
If you then enter: `masternodelist`
You should be able to find the externalip of your remote node
Congratulations your masternode is up and running!
Alternatively, on the STRAKS Qt client Masternodes tab --> All Masternodes you should see your
remote node ip address listed with its public key and other data
3. You can now shutdown your local "cold" wallet
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment