Skip to content

Only count stakes in main chain#636

Merged
aguycalled merged 3 commits into
masterfrom
stakes-main-chain
Nov 20, 2019
Merged

Only count stakes in main chain#636
aguycalled merged 3 commits into
masterfrom
stakes-main-chain

Conversation

@aguycalled
Copy link
Copy Markdown
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
Copy Markdown
Contributor

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

@navbuilder
Copy link
Copy Markdown

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

@navbuilder
Copy link
Copy Markdown

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

Copy link
Copy Markdown
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
Copy Markdown

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.

5 participants