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

Remove Either struct #129

Conversation

Zerg1996
Copy link

@Zerg1996 Zerg1996 commented Apr 3, 2024

In this PR removed all part where body or init can be CellSlice, now it's always ref.

@shermike
Copy link
Contributor

shermike commented Apr 9, 2024

Could you please clarify, what is the reason of removing Either?

@Zerg1996 Zerg1996 force-pushed the 6-consistency-applications-remove-either-struct branch from c2f2143 to c28c408 Compare April 9, 2024 11:03
@Zerg1996
Copy link
Author

Zerg1996 commented Apr 9, 2024

Could you please clarify, what is the reason of removing Either?

This tl-b struct hard to migrate to ssz and merkle patricia trie. In case where everything cell - it's easy to run over graph of cells, but when every our struct unique - we need to understand what we have X or ^X in our data.

Also now we want to make everything struct flat (without reference to our cells) in first point (it's easier to create merkle patricia trie), thats why we don't need such struct at all.

@Zerg1996 Zerg1996 force-pushed the 6-consistency-applications-remove-either-struct branch from ff9341e to 656e42b Compare April 10, 2024 11:17
@Zerg1996 Zerg1996 force-pushed the 6-consistency-applications-remove-either-struct branch from 534078f to 521b93b Compare April 10, 2024 15:15
@Zerg1996 Zerg1996 requested a review from shermike April 10, 2024 16:24
@Zerg1996 Zerg1996 marked this pull request as ready for review April 10, 2024 16:24
@Zerg1996 Zerg1996 merged commit d0133cf into 6-consistency-applications Apr 11, 2024
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.

2 participants