Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I change my staking adress? #18

Closed
avrossi opened this issue Dec 6, 2017 · 10 comments
Closed

How do I change my staking adress? #18

avrossi opened this issue Dec 6, 2017 · 10 comments

Comments

@avrossi
Copy link

avrossi commented Dec 6, 2017

Just wondering if you could help me change my staking adress. Thanks

@avrossi
Copy link
Author

avrossi commented Dec 6, 2017

root@localhost:~# /mnt/zen/secnode/stakeaddr
-bash: /mnt/zen/secnode/stakeaddr: Permission denied

this is what Im getting

@333miiko
Copy link
Collaborator

333miiko commented Dec 6, 2017

You can run the installer script again with the new stakeaddr, alternatively you simply need to edit the file (above you're trying to execute it).

Use the following command to change your stakeaddr. Note you can't use your text editor as it will leave an new line, so you must use the echo -n command

echo -n 'newstakeaddr' > /mnt/zen/secnode/stakeaddr
systemctl restart zen-secnodetracker

@avrossi
Copy link
Author

avrossi commented Dec 6, 2017

Worked! Thank you so much

@avrossi
Copy link
Author

avrossi commented Dec 6, 2017

Actually is there a command to check to make sure it changed the address?

@avrossi
Copy link
Author

avrossi commented Dec 6, 2017

Should the new stake address be in quotations or not? I do not want to run the installer script again because i have all ready sent my 1 zen to the shielded address. thanks again for your help..

@333miiko
Copy link
Collaborator

333miiko commented Dec 6, 2017

If you get the logs of your secnode tracker you should see the new address show up there I believe:

docker logs zen-secnodetracker

@avrossi
Copy link
Author

avrossi commented Dec 6, 2017

Thanks,
I tried that command and It gives every address other than the staking address.
any other way to find out or should i just start over...

@333miiko
Copy link
Collaborator

333miiko commented Dec 7, 2017

You can put it in quotations or not, its optional. When you re-run the installer you don't lose the 1 zen you sent to the shield address.

Did you restart your zen-secnodetracker after you updated the stakeaddr?

cat /mnt/zen/secnode/stakeaddr

Does that return your new stakeaddr?

Your zen-secnodetracker log should look something like this, when your new stakeaddr is updated it will show here:

2017-12-06 23:58:28 GMT -- Connected to server ts1.na. Initializing...
Secure Node t_address (not for stake)=znxxx
Balance for challenge transactions is 0.9988
Using the following address for challenges
zcxxx

@avrossi
Copy link
Author

avrossi commented Dec 7, 2017

Thanks again. What's your Zencash address for donations.

@333miiko
Copy link
Collaborator

333miiko commented Dec 7, 2017

No worries, glad you got it sorted!

My ZEN donation address is znZ2NFrmV6jaiq1hEnKxzApKzgGqptZNq7o

Feel free to re-open this issue if you run into any other problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants