Menu

Masternode setup

This is a user manual for installing and configuring the masternode using the console, prepared in the first week of starting the EtherZero masternode network. Also use the official instructions from the EtherZero team and the EtherZero Masternode Manager (EMM) tutorial.

ETZ geth preparing and running

To install on a Linux server, download ETZ geth from github: https://github.com/etherzero-org and compile it:

cd
git clone https://github.com/etherzero-org/go-etherzero.git
cd go-etherzero/ 
make geth
cd

Execute geth:

~/go-etherzero/build/bin/geth --syncmode "full" --ipcdisable --port 21212 --masternode console

Wait for your node to synchronize with the network up to the current block.

The console will look like this when it is done syncing:

The console will look like this when it is done syncing

The node is running, blocks are loading.

 

Account creation

Execute the command in the console to create a local account:

personal.newAccount ("yourpassword")

– where instead of yourpassword use your password: complex, long, with numbers, letters and different characters. Write it down and save it!!!

A JSON file will be created in the \etc\appdata\roaming\keystore directory, which can be used with the password to access the address through different wallets.

Another option is to create a new address using Web Wallet (http://wallet.etherzero.org), carefully save the address, password, private key and JSON file.

One more option is to use existing address with the required balance.

To operate the Masternode requires 20 000 ETZ. Accordingly, if you have created a new address – fill it up for this amount.

To switch to the desired address in the console, execute the command:

miner.setEtherbase('0x_your_address')

Verify it arrived by checking the balance:

web3.fromWei(eth.getBalance(eth.coinbase), "ether")

Verify it arrived by checking the balance

You can get full information on the account by request:

Personal

 

Running the Masternode

Get your Masternode data:

masternode

Get your Masternode data

You need this long hex string – copy it (and save it too!).

Unlock your account:

personal.unlockAccount (eth.accounts[0], "yourpassword", 0)

Then send a transaction of 20 000 ETZ to the address of the Masternodes smart contract:

eth.sendTransaction({from:eth.accounts[0], to: "0x000000000000000000000000000000000000000a", value: web3.toWei(20000, "ether"),data:"0x_your_masternode_data", gas: 2700000})

Once the transaction has completed, exit geth:

exit

And then re-launch geth:

~/go-etherzero/build/bin/geth --syncmode "full" --ipcdisable --port 21212 --masternode console

You will receive a message:

 "### It's already been a masternode!"

Masternode is ready to work!

 

Starting and stopping mining

Set the address you want to receive rewards at:

miner.setEtherbase('0x_your_address')

This may be the same address from which you made the transfer to the smart contract, but it is better to use a separate address.

And start the Masternode “mining”:

miner.start()

Masternode witness elections happen every 10 minutes. After the first launch, the reward will probably start charging in about an hour.

When mining, the Masternode is assigned a signer – it must be present in the listing of active Masternodes.

When restarting geth you only need to reset the Etherbase and start the miner, these last two steps.

To stop mining execute the request:

miner.stop()

To withdraw your ETZ from the smart contract address, execute the transaction with a zero amount – the coins will back to your address and your Masternode will be removed from the list of active Masternodes:

eth.sendTransaction({from:eth.accounts[0], to: "0x000000000000000000000000000000000000000a", value: web3.toWei(0, "ether"),data:"empty", gas: 2700000})

 

Other requests

To receive your address:

eth.coinbase

To check the balance:

eth.getBalance(eth.accounts[0])

 

Masternodes website

On this website you can get information about the number of active Masternodes in the network, the amount of paid rewards since the launch of the Masternodes network and data for specific Masternode (address):

http://etherzero.org/masternode/

Masternodes website

Please pay attention – it is possible to specify your e-mail address in relation to the address of the masternode, thereby allowing the developers of EtherZero to contact you and report possible incorrect operation of the masternode and get recommendations for its configuration.