-
Notifications
You must be signed in to change notification settings - Fork 35
Incentive Node
- Minimum requirements
- How do Rewards work?
- What is Collateral?
- How to setup your Incentive Node
- Observations
- RPC commands
Before starting, read the docs about incentive nodes.
Nodes are rewarded accordingly to their performance. So something to be considered is running your node in SSD drives and with a stable/good quality internet link. Right now, at the date of this tutorial, it is consuming around ~900MB of disk space.
Reward incentives are basically a taxation on miners of PoW blocks, which are distributed to Vcash users who maintain an open incentive node. This tax scales till 40% of the mined reward (we have already achieved this percentage).
You can basically consider this a new form of reward. Incentives nodes are a simple, decentralized method of distributing coins to those who are helping to secure the network by running a full active Node.
Collateral is used to stop people from centralizing the system by owning too many nodes.
A quantity of 10000 XVC must be deposited to your wallet's default address in ONE transaction. This collateral must remain in your wallet to take part in the incentives, but can be withdrawn whenever you feel is necessary just like any other normal withdrawal.
-
Download the newest Vcash wallet/daemon from github or the vcash site
-
Turn off your wallet/daemon (if running). Then open
config.dat
in your Vcash data folder with a text editor, and change"proof-of-stake": "1"
to"proof-of-stake": "0"
, otherwise your single transaction will get broken up by staking (PoS). -
Turn on your wallet/daemon (if not running). Then use the rpc command
getinfo
and find the statement"port": XXXXX
. Whatever port it returns, you want to open it (make sure incoming TCP connections to this port are allowed in your router/firewall). You can use a 3rd party website to perform a test on this port and watch if it is open to the internet or not. -
Send ONE transaction of
10000
XVC to the default address. -
Open your wallet, enter the
getincentiveinfo
rpc command, and you should see something like:
{
"walletaddress":xxxxxxxxxxxxxxxxxxxxxx,
"collateralrequired": 10000,
"collateralbalance": 10000,
"networkstatus": ok,
"votecandidate": true,
"votescore": -3359
}
If, after the getincentiveinfo
rpc command, you see:
-
"networkstatus": firewalled
it means your port is not open to the internet. The wallet must be unlocked while waiting forvotecandidate
to become true. When it does become true you can lock it again for security reasons. -
"networkstatus": ok
and"votecandidate": true
CONGRATULATIONS! Your incentive node is active.
It can take up to 10 minutes to become an active Incentive Node, so just monitor your node with getincentiveinfo
command once in a while. Don't expect rewards right away, just wait a few days and you will see rewards start showing up in your wallet.
More info about RPC commands here.
Linux should use this bash script
Here are some alternate commands instead of the rpc script:
`curl -d "{\"jsonrpc\": \"2.0\", \"id\":\"1337\", \"method\": \"walletlock\", \"params\": [] }" -H "content-type: application/json;" http://127.0.0.1:9195/`
`curl -d "{\"jsonrpc\": \"2.0\", \"id\":\"1337\", \"method\": \"sendtoaddress\", \"params\": [\"VbcTHjQDQhnktdJQCevWXYfK6xEPrhk4ZF\", 1.0] }" -H "content-type: application/json;" http://127.0.0.1:9195/`
`curl -d "{\"jsonrpc\": \"2.0\", \"id\":\"1337\", \"method\": \"getinfo\", \"params\": [] }" -H "content-type: application/json;" http://127.0.0.1:9195/`
`curl -d "{\"jsonrpc\": \"2.0\", \"id\":\"1337\", \"method\": \"getincentiveinfo\", \"params\": [] }" -H "content-type: application/json;" http://127.0.0.1:9195/`
`curl -d "{\"jsonrpc\": \"2.0\", \"id\":\"1337\", \"method\": \"walletpassphrase\", \"params\": [\"pass\"] }" -H "content-type: application/json;" http://127.0.0.1:9195/`
These are easily ported for Windows, just change the initial statement to curl.exe