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

feat: added commitment verification layer for data during reveal after removing waitForBlockCompletion check for voting transactions #1254

Conversation

Yashk767
Copy link
Contributor

@Yashk767 Yashk767 commented Oct 8, 2024

Description

This PR removes the WaitForBlockCompletion for voting transactions Which required some validations needed to be added to make vote work correctly.

  • So there was a need to check whether commitment calculated form the commit data fetched from memory during reveal state should be equal to commitment committed suring commit state.
    If this check for commitment is verified thn only the node can use the same data during reveal.

  • Even during confirm state, node used to save the lastConfirmed check based on confirm transaction status , so that check is now replaced with checking whether is there a block confirmed in the epoch.

Fixes https://linear.app/interstellar-research/issue/RAZ-1024

How Has This Been Tested?

  • Ran multiple nodes with different scenarios mentioned in the issue.
  • Ran happy case scenarion on local and staging both for more than 10 epochs.
  • Covered the backup node scenario for the same node running on different machines.

@Yashk767 Yashk767 force-pushed the yash/raz-1024-check-if-we-even-need-to-consider-waitforblockcompletion-for branch from 4ed9a06 to 51e3bd5 Compare October 10, 2024 09:50
@Yashk767 Yashk767 marked this pull request as ready for review October 10, 2024 10:30
Copy link
Member

@ashish10677 ashish10677 left a comment

Choose a reason for hiding this comment

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

Please make the requested changes.

@Yashk767 Yashk767 force-pushed the yash/raz-1024-check-if-we-even-need-to-consider-waitforblockcompletion-for branch from 1e6cf73 to 4513fbc Compare October 15, 2024 11:01
@Yashk767 Yashk767 merged commit 72b6be4 into develop Oct 17, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants