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

[DNM] adds --commitment.history flag to produce proof history #13183

Draft
wants to merge 14 commits into
base: main
Choose a base branch
from

Conversation

awskii
Copy link
Member

@awskii awskii commented Dec 19, 2024

--commitment.history - to produce history for commitment.
Set up to commit each 32blocks

Merged #12907
So need to add --experimental.ef-optimization as well to get exp history format

@@ -194,7 +194,7 @@ func (rs *StateV3) ApplyState4(ctx context.Context, txTask *TxTask) error {
return fmt.Errorf("StateV3.ApplyLogsAndTraces: %w", err)
}

if (txTask.TxNum+1)%rs.domains.StepSize() == 0 /*&& txTask.TxNum > 0 */ {
if (txTask.TxNum+1)%rs.domains.StepSize() == 0 || (txTask.BlockNum)%32 == 0 /*&& txTask.TxNum > 0 */ {
Copy link
Collaborator

Choose a reason for hiding this comment

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

  1. i'm not sure it's safe to merge
  2. probably need change to (txTask.Final && txTask.BlockNum%32 == 0)

Copy link
Member Author

Choose a reason for hiding this comment

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

for sure not safe, thanks for pointing on final

@awskii awskii changed the title adds --commitment.history flag to produce proof history [DNM] adds --commitment.history flag to produce proof history Dec 20, 2024
@awskii awskii marked this pull request as draft December 20, 2024 12:28
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.

3 participants