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

Process state trie at the end #476

Merged
merged 1 commit into from
Aug 8, 2024
Merged

Conversation

LindaGuiga
Copy link
Contributor

This PR closes #406 .

This PR changes the order at which the tries are processed: the initial and final state tries are processed and hashed after the transaction and receipt tries.

@github-actions github-actions bot added the crate: evm_arithmetization Anything related to the evm_arithmetization crate. label Aug 7, 2024
Copy link
Collaborator

@Nashtare Nashtare left a comment

Choose a reason for hiding this comment

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

LGTM!

@@ -139,7 +139,7 @@ pub(crate) fn prepare_interpreter<F: Field>(
account: &AccountRlp,
) -> Result<()> {
let mpt_insert_state_trie = KERNEL.global_labels["mpt_insert_state_trie"];
let check_state_trie = KERNEL.global_labels["check_state_trie"];
let check_state_trie = KERNEL.global_labels["check_final_state_trie"];
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't think this is even being used? It was probably aimed at being the halt offset but is being overwritten in tests

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is used as the initial offset for hashing, is it not? check_txn_trie was used as a halt offset, and I should indeed remove it now, though

Copy link
Contributor

@4l0n50 4l0n50 left a comment

Choose a reason for hiding this comment

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

LGTM! But the name of the PR should be " Process txns and receipts trie at the end".

@LindaGuiga
Copy link
Contributor Author

LGTM! But the name of the PR should be " Process txns and receipts trie at the end".

What do you mean? We hash the state trie after the txn and receipt tries, now, don't we?

@4l0n50
Copy link
Contributor

4l0n50 commented Aug 8, 2024

I thought this PR was moving the hash of the initial txns and receipts tries to the end instead. I was misunderstanding #406

@Nashtare Nashtare merged commit 5905cf7 into feat/continuations Aug 8, 2024
13 of 14 checks passed
@Nashtare Nashtare deleted the process-state-at-end branch August 8, 2024 13:22
@Nashtare Nashtare added this to the Performance Tuning milestone Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crate: evm_arithmetization Anything related to the evm_arithmetization crate.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants