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

[WIP][RFC] Blockid hide long #1724

Draft
wants to merge 1 commit into
base: blockid-set
Choose a base branch
from

Conversation

EnricoMi
Copy link
Contributor

@EnricoMi EnricoMi commented May 20, 2024

What changes were proposed in this pull request?

Hides the long block id behind an interface.

Why are the changes needed?

This hides implementation details behind a meaningful interface. The long representation of a block id is not use in many places but currently visible everywhere. This allows to replace the block id representation in the future without touching much code.

This is based on #1723 (block id set) and turns the set of longs into a true set of BlockIds.
Ultimately, this would allow to rework the structure of block id without touching many files (#1621).

Fix: # (issue)

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Unit and integration tests.

Copy link

Test Results

1 932 files  ± 0  1 932 suites  ±0   2h 14m 54s ⏱️ - 1m 6s
  647 tests + 1    646 ✅ + 1   1 💤 ±0  0 ❌ ±0 
9 058 runs  +14  9 044 ✅ +14  14 💤 ±0  0 ❌ ±0 

Results for commit 5f25bef. ± Comparison against base commit 88a1633.

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