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

fix(sync)!: validate checkpoint merkle root #1108

Merged

Conversation

sdbondi
Copy link
Member

@sdbondi sdbondi commented Aug 5, 2024

Description

fix(sync): validate checkpoint merkle root
Rename NumPreshard variants (#1092 (comment))

Motivation and Context

Validates the checkpoint blocks merkle root against the synced state so that the validator can be sure they have the correct state. Note that block and QC signatures are not currently validated pending a refactor in the validations.

How Has This Been Tested?

Manually, submitting transactions, mining to next epoch, submitting more transactions, deleting data of one VN and resyncing.

What process can a PR reviewer use to test or verify this change?

As above

Breaking Changes

  • None
  • Requires data directory to be deleted
  • Other - Please specify

BREAKING CHANGE: the merkle root construction differs slightly from current development branch

Copy link

github-actions bot commented Aug 5, 2024

Test Results (CI)

556 tests  ±0   556 ✅ ±0   1h 34m 9s ⏱️ - 1h 37m 36s
 65 suites ±0     0 💤 ±0 
  2 files   ±0     0 ❌ ±0 

Results for commit b65a529. ± Comparison against base commit 847682e.

♻️ This comment has been updated with latest results.

@sdbondi sdbondi force-pushed the consensus-and-sync-validate-mr branch from 38bfa5a to b65a529 Compare August 6, 2024 06:30
@sdbondi sdbondi added this pull request to the merge queue Aug 6, 2024
Merged via the queue into tari-project:development with commit 6c1dbc6 Aug 6, 2024
12 checks passed
@sdbondi sdbondi deleted the consensus-and-sync-validate-mr branch August 6, 2024 13:59
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.

3 participants