Skip to content

Conversation

@lowhung
Copy link
Collaborator

@lowhung lowhung commented Dec 2, 2025

Description

Adds support for reading nonces and block header cbor into the snapshot bootstrapper, prior to doing snapshot downloading -> parsing.

Related Issue(s)

Relates to #381

How was this tested?

  • unit tests
    -- cargo test --package acropolis_module_snapshot_bootstrapper
    -- cargo test --package acropolis_module_snapshot_bootstrapper --lib header
    -- cargo test --package acropolis_module_snapshot_bootstrapper --lib nonces
  • Ran the Acropolis project using make run

Checklist

  • My code builds and passes local tests
  • I added/updated tests for my changes, where applicable
  • I updated documentation (if applicable)
  • CI is green for this PR

Impact / Side effects

Should be no side effects as a result of this PR. This is an additive change.

Reviewer notes / Areas to focus

@lowhung lowhung requested a review from golddydev December 2, 2025 18:47
@lowhung lowhung changed the title feat: add header and nonces modules with context handling feat: add header and nonces modules for snapshot bootstrapper Dec 2, 2025
pub struct HeaderContext {
pub point: Point,
pub block_number: u64,
pub block_hash: Hash<32>,
Copy link
Collaborator

Choose a reason for hiding this comment

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

The point already contains the block hash so this field shouldn't be needed.

Copy link
Collaborator Author

@lowhung lowhung Dec 2, 2025

Choose a reason for hiding this comment

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

Removed 415bb4d

@lowhung lowhung merged commit 6b33525 into main Dec 2, 2025
2 checks passed
@lowhung lowhung deleted the lowhung/381-header-nonces branch December 2, 2025 20:13
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