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

Cleanup stateless and block witness code. #2295

Merged
merged 6 commits into from
Jun 8, 2024
Merged

Cleanup stateless and block witness code. #2295

merged 6 commits into from
Jun 8, 2024

Conversation

bhartnett
Copy link
Contributor

@bhartnett bhartnett commented Jun 5, 2024

This PR cleans up all the experimental stateless code and anything related to block witnesses. Note that this doesn't clean up anything related to eth_getProof as it doesn't use the block witness format.

Keeping MultiKeys which is used in the eth_getProofsByBlockNumber RPC endpoint which is needed for the Fluffy state network bridge.

…which is used in the eth_getProofsByBlockNumber RPC endpoint which is needed for the Fluffy state network bridge.
…what the flag does. We only collect the keys of the touched accounts and storage slots but no block witness generation is supported for now.

let
chain = newChain(com, extraValidation = true, ctx.vmState)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@arnetheduck I noticed that this vmState parameter was removed from the newChain procs in one of your recent changes. Was this intentional?
I had to remove the parameter to get the code to compile but this test may now be broken once we get the Aristo db working.

Copy link
Member

Choose a reason for hiding this comment

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

ah - I missed that it was used somewhere - probably because these files were not enabled - it can be added back if it's useful, it was cleaned up just to simplify things

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, I'll add it back in

@bhartnett bhartnett changed the title Cleanup unneeded stateless and block witness code. Cleanup stateless and block witness code. Jun 6, 2024
@bhartnett
Copy link
Contributor Author

bhartnett commented Jun 6, 2024

@arnetheduck now that @mjfh has merged in his recent changes and approved this PR, can you confirm if this change is something we want to do?

@jangko jangko merged commit db8c5b9 into master Jun 8, 2024
16 checks passed
@jangko jangko deleted the stateless-cleanup branch June 8, 2024 08:05
@bhartnett
Copy link
Contributor Author

A backup of the stateless code is in this branch for future reference: https://github.com/status-im/nimbus-eth1/tree/stateless-backup

@arnetheduck
Copy link
Member

A backup of the stateless code is in this branch for future reference: https://github.com/status-im/nimbus-eth1/tree/stateless-backup

can you create an issue with the functionality disabled by this PR, linking to it there?

@bhartnett
Copy link
Contributor Author

bhartnett commented Jun 8, 2024

can you create an issue with the functionality disabled by this PR, linking to it there?

Sure.

Done, see here: #2327

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.

4 participants