-
Notifications
You must be signed in to change notification settings - Fork 662
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Epoch Sync] Verify merkle proofs for the first block in current epoc…
…h. (#12330) * Verify the first block of the current epoch against the last final block of the current epoch, using the merkle proof. * Verify the last and second last headers before the first header. * Verify the partial merkle tree (note: this is NOT the merkle *proof*!) of the first block; add `is_well_formed()` to facilitate that validation. * Clearly document what every field of EpochSyncProof is validated against.
- Loading branch information
1 parent
97d586c
commit 2b3bede
Showing
3 changed files
with
90 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters