Changing your Governance Control Token
Note: You need to change the token both on your masternode as well as on your local installation of Syscoin-Qt. If you have multiple masternodes, you need to use different voting tokens for each one.
1. Create a new control token
- Start Syscoin-Qt
- Open the console:
Window -> Console
- Type:
masternode genkey
and pressEnter
for each masternode - Copy the output of the command
2. Replace the control token in your local Syscoin-Qt
- Using a file manager, navigate to The Syscoin data directory
- Open
masternode.conf
in a simple text editor (Notepad, TextEdit,…) - Find replace the string of letters and number after the masternode ip and port
[LABEL] [IP]:[PORT] [CONTROL_TOKEN] [COLLATERAL_ID] [COLLATERAL_OUTPUT]
- Save the file
3. Replace the control token on your masternode
Note: If you used the script to install your masternode, you can run this command to update your control key:
bash <(curl -sL https://raw.githubusercontent.com/syscoin/syscoin-governance-update/master/script.sh)
Note: We encourage you to never run scripts you find on the internet (including ours) without checking them beforehand.
Otherwise, if you have installed your masternode manually:
- Log into your masternode
- Navigate to your masternode’s data directory
- Open
syscoin.conf
in an editornano syscoin.conf
- Replace the value for
masternodeprivkey
with your newly generated control token - Close and save the file
- press
CTRL+X
- press
- Restart
syscoind
(or your vps if you’re unsure on how to restartsyscoind
)
4. Reinitialize your masternode from Syscoin-Qt
- Click on
Window -> Console
- Unlock your wallet by entering
walletpassphrase [PASSPHRASE] [SECONDS]
- replace
[PASSPHRASE]
with your passphrase - replace
[SECONDS]
by the number of seconds after which you want the client to lock the wallet again.
- replace
- Initialize your masternode by entering
masternode initialize [LABEL]
- replace
[LABEL]
with the name of the masternode you want to restart.
- replace
- Lock your wallet again by entering
walletlock
.