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

chore: make block field private #13628

Merged
merged 5 commits into from
Jan 3, 2025
Merged

chore: make block field private #13628

merged 5 commits into from
Jan 3, 2025

Conversation

mattsse
Copy link
Collaborator

@mattsse mattsse commented Jan 3, 2025

towards #13626

this was a bit horrible...

we should enforce trait usage and the first step towards Sealed<Block> would be making the fields private, then we can change internals more easily.

this also highlights things we can extract into helper functions, like tx_count etc...

haven't done the same for header yet, because this is enough for 1pr

@mattsse mattsse added the C-debt Refactor of code section that is hard to understand or maintain label Jan 3, 2025
@mattsse mattsse enabled auto-merge January 3, 2025 15:05
Copy link
Member

@rkrasiuk rkrasiuk left a comment

Choose a reason for hiding this comment

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

lgtm

@mattsse mattsse added this pull request to the merge queue Jan 3, 2025
Merged via the queue into main with commit dbd4f0c Jan 3, 2025
43 checks passed
@mattsse mattsse deleted the matt/make-block-fields-priv branch January 3, 2025 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-debt Refactor of code section that is hard to understand or maintain
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants