-
Notifications
You must be signed in to change notification settings - Fork 92
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
Staking reward setup GUI #605
Staking reward setup GUI #605
Conversation
built and tested locally on ubuntu 18.04. it worked as expected. made a couple suggestions on handling the default settings. |
should be fixed now @chasingkirkjufell |
in cold-staking mode, staking node stake redirection did not work when choosing the cold-staking address from the drop down list and then point to an address that belongs to staking node. it only worked when the redirection address was set under "default" rather than "cold-staking address". Edit: also doesn't work if pointed to a 3rd unrelated wallet address. so basically choosing the cold-staking address from the drop down list and then set a redirection address does not work. |
this happens because the wallet looks for the configuration for the staking address of the cold staking address which owns the coins that are staking. i've updated the gui so it only shows the staking address instead of the long cold staking one. does it sound like a good solution? |
should be fine if the amount it's cold-staking is also shown so users don't have to figure out which address they used. the questions though will be what will it show if somehow someone send coins to the staking address, will it show the cold-staking amount or the amount in the address? will test it tomorrow. |
it will show both |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK, building now
how is it shown in |
should be fixed now |
setting window width increases with the amount of addresses set and cannot be decreased. http://giphygifs.s3.amazonaws.com/media/njYrp176NQsHS/giphy.gif :P |
when setting both default redirection address and individual address redirection address, redirection will stop after setting individual address and then removing it while it shouldn't since the default should still redirect it to the set address. a uncommon situation but when cold-staking, the spending wallet redirection drop down will show the staking address as well as the spending address tied to it as separate addresses. uncommon since if someone is cold-staking, they won't need to use redirection on the spending wallet. |
wait, i might have made a mistake |
my bad, cold-staking redirecting to another cold-staking address works just fine. i opened the wrong wallet and redirected to myself that was why i couldn't see any contribution difference. and a hot-staking node can redirect stakes to a cold-staking address normally. so the irregularity is only when a node is both hot-staking and cold-staking. |
okay, narrowed down. if a node is cold-staking and hot staking, hot staking stake redirection works normally unless the redirected address is the long cold-staking address which the wallet owns the staking address, then the incorrect amount will be shown. the correct amount is shown if hot-stakes redirected to just the staking address of the cold-staking address. only doesn't work when redirected to the long cold-staking address the wallet is staking with. |
could you share a screenshot of your rewards setup? |
Yeah the spending address in my situation belongs to another wallet. The problem comes when a normal address of the staking node and belongs to the staking node wallet finds a block and redirects it to a long cold staking address of which the staking node only owns the staking address and not the spending address |
Kind of proud that I could find that problem tbh :P |
That's a pretty niche issue. But i guess it's a valid use case.
…On Fri, Sep 27, 2019, 02:51 chasingkirkjufell ***@***.***> wrote:
Kind of proud that I could find that problem tbh :P
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
<#605?email_source=notifications&email_token=AAIDAKKQ7VW6IG3YDNKCKXTQLUADVA5CNFSM4IY36MN2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7WTCEI#issuecomment-535638289>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAIDAKOVWQAE6TT7SZIUAD3QLUADVANCNFSM4IY36MNQ>
.
|
@chasingkirkjufell i wanted to send you some navs from the dev bounty for helping testing if you could share a nav address 😉 |
sure. really appreciate it. :) |
❤️❤️❤️
…On Fri, Sep 27, 2019, 02:59 chasingkirkjufell ***@***.***> wrote:
sure. really appreciate it. :)
NL9jPW75P4kNMdvQmFBpYVkZ3sABQtXfYY
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
<#605?email_source=notifications&email_token=AAIDAKK5L6CG33O3OBUIVXDQLUBAVA5CNFSM4IY36MN2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7WTZTI#issuecomment-535641293>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAIDAKIFQ4PJ4BGX2RTENPLQLUBAVANCNFSM4IY36MNQ>
.
|
i think i got it fixed now |
tested and worked well. all redirection possibilities worked as expected. the only imperfection is what i mentioned before but it doesn't affect functionality. good job! |
@aguycalled can you add my address to this list? :) NRXfZ1egFxMSUsc4Ufpi4Lm7DdXStYmeBG |
@@ -24,6 +24,7 @@ | |||
#include <QVBoxLayout> | |||
|
|||
static QMap<QString, QString> teamAddresses = {{"NN5QSSMAdtRU35BffLZUw9vChnhHKKMeuL", "Alex aguycalled - Core Dev"}, | |||
{"NRXfZ1egFxMSUsc4Ufpi4Lm7DdXStYmeBG", "mxaddict - Core Dev"}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❤️
Paid 2,800NAV to NL9jPW75P4kNMdvQmFBpYVkZ3sABQtXfYY |
thanks a lot!! :D |
Compiles & Runs on OSX 10.14.5. Seems like there's been some pretty rigorous testing on this one so far. My only real feedback is adding a button to the staking section on the overview page which also launches the staking setup window to drive people to consider using it more than just hidden away in the menu. I've committed the change adding the button. If you don't think we should have the button there we can roll it back. I've also added a donation address for me :) |
… donation address
src/qt/overviewpage.h
Outdated
@@ -61,11 +62,11 @@ public Q_SLOTS: | |||
void updateStakeReportNow(); | |||
void updateStakeReportbalanceChanged(CAmount, CAmount, CAmount, CAmount, CAmount, CAmount, CAmount); | |||
void setVotingStatus(QString text); | |||
|
|||
void on_pushButton_clicked(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@proletesseract could we maybe use another name for this method? it reads very generic and does not refer to its real meaning
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, that was just what was autogenerated by QT Creator. I'll commit the change when i get a chance.
This PR adds a new GUI to set up different ways to split the staking rewards. Setup can be done generally for every address or individually per staking address.
Works for both hot and cold staking methods.
Includes the following hardcoded addresses:
Please comment in this pull request to add other community member addresses.