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

[1.2.0] Check for result phase at activate method #3492

Conversation

chimp1984
Copy link
Contributor

Fixes #3487

Copy link
Member

@devinbileck devinbileck left a comment

Choose a reason for hiding this comment

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

NACK
The vote results are only populated if viewing the results on the first block of the results phase. If you try to view the results after that, they are still empty.

fillCycleList();
}

private void checkForResultPhase(int chainHeight) {
if (periodService.getFirstBlockOfPhase(chainHeight, DaoPhase.Phase.RESULT) == chainHeight) {
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't this be <= chainHeight?

Copy link
Member

Choose a reason for hiding this comment

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

periodService.getFirstBlockOfPhase gets the height of the first block of the current phase so this check will return true for all chainHeight in the RESULT phase.

Copy link
Member

@sqrrm sqrrm left a comment

Choose a reason for hiding this comment

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

NACK

fillCycleList();
}

private void checkForResultPhase(int chainHeight) {
if (periodService.getFirstBlockOfPhase(chainHeight, DaoPhase.Phase.RESULT) == chainHeight) {
Copy link
Member

Choose a reason for hiding this comment

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

periodService.getFirstBlockOfPhase gets the height of the first block of the current phase so this check will return true for all chainHeight in the RESULT phase.

@ripcurlx ripcurlx changed the title Check for result phase at activate method [1.2.0] Check for result phase at activate method Oct 28, 2019
@ripcurlx
Copy link
Contributor

@sqrrm I think you approved by mistake -> NACK

@sqrrm
Copy link
Member

sqrrm commented Oct 28, 2019

I first approved without testing. Then I read a bit more, checked out and tested and it fails, working on a fix. Don't know how to undo the approve.

@sqrrm
Copy link
Member

sqrrm commented Oct 28, 2019

I made a new PR at #3500 that fixes this

@ripcurlx
Copy link
Contributor

Superseded by #3500

@ripcurlx ripcurlx closed this Oct 28, 2019
@chimp1984 chimp1984 deleted the fix-missing-DAO-cycle-update branch November 2, 2019 03:16
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

4 participants