Skip to content

Feature/improve flashblocks test framework#3

Open
maoueh wants to merge 5 commits into
firehose/0.xfrom
feature/improve-flashblocks-test-framework
Open

Feature/improve flashblocks test framework#3
maoueh wants to merge 5 commits into
firehose/0.xfrom
feature/improve-flashblocks-test-framework

Conversation

@maoueh
Copy link
Copy Markdown

@maoueh maoueh commented May 22, 2026

No description provided.

maoueh added 5 commits May 22, 2026 16:58
…mework

Introduces TestEvent{Flashblock, CanonicalBlock} to replace raw Vec<Flashblock>
in run_flashblock_sequence. CanonicalBlock events update GenesisClient's internal
available-block set so state_by_block_number_or_tag returns successfully for that
block number without WS traffic. Adds two new tests covering the provider bootstrap
path; all 12 integration tests pass.

# Conflicts:
#	crates/firehose-flashblocks/tests/flashblock_sequence.rs
…_block return TestEvent directly

- flash_base and flash_delta now return TestEvent instead of Flashblock,
  eliminating the need for TestEvent::flashblock(...) wrapping at call sites.
- Add a module-level canonical_block free function mirroring flash_base and
  flash_delta, so all three helpers are uniform.
- Add #[derive(Clone)] to TestEvent to support cloning in duplicate-base test.
- Remove the now-unused TestEvent::canonical_block method and the unwrap_flashblock
  internal helper (the run_flashblock_sequence split loop is self-contained).
- Rename all delta local variables throughout flashblock_sequence.rs to follow
  the delta<blockNum>_<flashIndex> convention (e.g. delta1_1, delta1_2, delta2_1).
- Rename base local variables to base1, base2, etc. for consistency.
- Update module-level doc comment to reflect the new helper signatures.

# Conflicts:
#	crates/firehose-flashblocks/tests/flashblock_sequence.rs
@maoueh maoueh force-pushed the feature/improve-flashblocks-test-framework branch from 959fa49 to 6aa7496 Compare May 22, 2026 21:00
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.

1 participant