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

Only count stakes in main chain #636

Merged
merged 3 commits into from
Nov 20, 2019
Merged

Only count stakes in main chain #636

merged 3 commits into from
Nov 20, 2019

Conversation

aguycalled
Copy link
Member

This pull request fixes the count of stakes in the Staking tab of the GUI and the getstakereport RPC command.

What to test

Stake count still shows the correct number even if there are orphans or blocks are invalidated.

@mxaddict
Copy link
Contributor

@aguycalled I added a new scenario to the qa/rpc-tests/getstakereport.py test for the orphaned block being counted.

@navbuilder
Copy link

A new build of 0fe4ec2 has completed succesfully!
Binaries available at https://build.nav.community/binaries/stakes-main-chain

@navbuilder
Copy link

A new build of dd1e801 has completed succesfully!
Binaries available at https://build.nav.community/binaries/stakes-main-chain

Copy link
Contributor

@chasingkirkjufell chasingkirkjufell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmed staking report is correct after re-org/orphan.

@roast-nav
Copy link

Looks good. Stake counters are correct. Thanks guys.

@aguycalled aguycalled merged commit e6f3c23 into master Nov 20, 2019
aguycalled pushed a commit to aguycalled/navcoin-core that referenced this pull request Nov 21, 2019
* Only count stakes in main chain

* Fixed a function call

* Updated the test to include the scenario for navcoin#636
aguycalled pushed a commit to aguycalled/navcoin-core that referenced this pull request Nov 21, 2019
* Only count stakes in main chain

* Fixed a function call

* Updated the test to include the scenario for navcoin#636
aguycalled pushed a commit to aguycalled/navcoin-core that referenced this pull request Dec 5, 2019
* Only count stakes in main chain

* Fixed a function call

* Updated the test to include the scenario for navcoin#636
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants