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

[release-8.1] Handle pows received before POW_SUBMISSION state #2629

Merged
merged 2 commits into from
Jun 29, 2021

Conversation

sandipbhoir
Copy link
Contributor

Description

Backward Compatibility

  • This is not a breaking change
  • This is a breaking change

Review Suggestion

Status

Implementation

  • [ x] ready for review

Integration Test (Core Team)

  • local machine test
  • small-scale cloud test

@sandipbhoir sandipbhoir self-assigned this Jun 25, 2021
@github-actions github-actions bot changed the title Handle pows received before POW_SUBMISSION state [release-8.1] Handle pows received before POW_SUBMISSION state Jun 25, 2021
@github-actions github-actions bot added this to PRs in development in Core Jun 25, 2021
@@ -285,18 +292,16 @@ void DirectoryService::ProcessFinalBlockConsensusWhenDone() {
}
m_mediator.m_node->ClearUnconfirmedTxn();

AccountStore::GetInstance().InitTemp();
AccountStore::GetInstance().InitRevertibles();
Copy link
Contributor

Choose a reason for hiding this comment

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

was this change intended?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes. Basically we reverted the previous change. Now, Expiry window flag & state check in ProcessPowSubmission will allow submission to be accepted while node is still FinalBlockConsensus state

Core automation moved this from PRs in development to PRs approved - ready to merge! Jun 29, 2021
@sandipbhoir sandipbhoir merged commit 653c8db into release-8.1 Jun 29, 2021
@sandipbhoir sandipbhoir deleted the fix/powwindowexp branch June 29, 2021 05:57
Core automation moved this from PRs approved - ready to merge! to PRs done (merged) Jun 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Core
  
PRs done (merged)
Development

Successfully merging this pull request may close these issues.

None yet

3 participants