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

feijoa: l1infotree recursive #3474

Merged
merged 21 commits into from
Apr 5, 2024
Merged

Conversation

joanestebanr
Copy link
Contributor

Closes #3465

What does this PR do?

Reviewers

Main reviewers:

Codeowner reviewers:

  • @-Alice
  • @-Bob

@tclemos tclemos self-assigned this Mar 25, 2024
ProcessorBase: actions.ProcessorBase[ProcessorL1InfoTreeUpdate]{
SupportedEvent: []etherman.EventOrder{etherman.L1InfoTreeOrder},
SupportedForkdIds: &actions.ForksIdAll},
ProcessorBase: *actions.NewProcessorBase[ProcessorL1InfoTreeUpdate](
Copy link
Contributor Author

Choose a reason for hiding this comment

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

What is the reason for this change?

Copy link
Contributor

Choose a reason for hiding this comment

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

Just a refactoring to match the way I understood the ProcessorBase struct was intended to be implemented.
There were some methods to expose the fields adding extra logic when accessing these fields, but the fields were public and, there was no constructor to the struct, it was mixed publicly and privately implemented, then I adjusted it to work in a private way.

This was done in the middle of other changes to the code, we can review it and change it if necessary.

@tclemos tclemos marked this pull request as ready for review April 3, 2024 22:07
@joanestebanr joanestebanr merged commit 399d62c into develop Apr 5, 2024
18 checks passed
@joanestebanr joanestebanr deleted the feature/3465-feijoa_l1infotree branch April 5, 2024 10:39
testState := state.NewState(stateCfg, storage, nil, nil, nil, mt)
mtr, err := l1infotree.NewL1InfoTreeRecursive(32)
if err != nil {
panic(err)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
panic(err)
require.NoError(t, err)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feijoa: add support for recursive L1InfoTree
3 participants