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(base_layer): validate acceptance window expiration on dan layer #4251

Merged
merged 2 commits into from
Jun 30, 2022

Conversation

mrnaveira
Copy link
Contributor

Description

New validation step on contract acceptances (and contract update proposal acceptances) that:

  • Retrieve the mined block height of the corresponding constitution/proposal
  • Retrieve the specified acceptance window (as relative blocks) from the constitution/proposal
  • Checks that the current tip height has not yet passed the sum of the two

Motivation and Context

The base layer need to verify that an acceptance (both constitution or proposal one) is inside the allowed acceptance window, specified as relative blocks in the constitution (or proposal).

How Has This Been Tested?

New unit tests to replicate the expiration error

@aviator-app aviator-app bot merged commit 25e316b into tari-project:development Jun 30, 2022
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.

2 participants