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
Fix vote for auto excluded stakers #899
Conversation
Away from my main PC right now, will wait for gitian build to test |
A new build of 0a13ecf has completed succesfully! |
Can I see the nonce value for the block in the CLI? |
yep with getblockheader |
Thanks
…On Thu, Dec 9, 2021, 19:50 alex v. ***@***.***> wrote:
yep with getblockheader
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
<#899 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAIDAKKQFZ4XUN67CPPWXBTUQCJWVANCNFSM5JRP7A4A>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
im still having issue replicating the issue. so current master the nonce should be 1 when someone is inactive for more than 10 cycles and this PR nonce should be > 1 right? |
yes the condition is that there must be active votings during those 10 cycles and the voter did not engage in any of those |
@chasingkirkjufell are you manually testing this? Or adding it to the stressor? |
im tseting it manually but i can't exclude vote to happen on devnet unless i just do excludevote=1 @mxaddict |
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.
i'm not sure why i can't replicate this on devnet but the fix makes sense.
I'm trying to figure out how to test this correctly, do you guys have a suggestion? |
I'm curious to know if you can get a node to enter exclude vote by being idle for 10 voting cycles with active voting going on. I can't get it to trigger on devent so I didn't verify the bug. I set up two nodes and neither triggered. In the end I just approved it since it makes sense and aguycalled confirmed his nodes are now working properly. @mxaddict |
I'll try that |
@aguycalled I could not get a devnet node to get auto excluded from the network I tried doing this: I did not notice that node be was excluded after 10 cycles Am I testing this right? |
you can use this to debug the auto excluding process
|
I'll try this out, thanks for the snippet |
I did do some testing with |
This Pull Request fixes a bug where stakers which were auto excluded from voting because they were inactive for more than 10 voting cycles do not commit their votes in the nNonce parameter of the block.
How to test
Verify that staked blocks have its nonce value set to greater that 1 even when the wallet has been auto-excluded from voting