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

improve: storing 'batch_resources' and 'closing_reason' in 'state.batch' on closing a batch. #2006

Merged
merged 4 commits into from
Apr 20, 2023

Conversation

Psykepro
Copy link
Contributor

Closes #1810

What does this PR do?

Storing batch_resources and closing_reason in state.batch on closing a batch.

Reviewers

Main reviewers:

…ch' on closing a batch.

Signed-off-by: Nikolay Nedkov <[email protected]>
@Psykepro Psykepro force-pushed the feature/save-batch-constraints-in-db branch from a0ed81a to f72e0d7 Compare April 12, 2023 08:04
@Psykepro Psykepro requested a review from agnusmor April 12, 2023 09:25
} else if zkCounters.CumulativeGasUsed <= f.getConstraintThresholdUint64(f.batchConstraints.MaxCumulativeGasUsed) {
result = true
}
f.batch.closingReason = state.BatchAlmostFullClosingReason
Copy link
Contributor

Choose a reason for hiding this comment

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

I am not sure. Should we check here if result == true ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ops yep :D

@ToniRamirezM
Copy link
Contributor

ToniRamirezM commented Apr 14, 2023

Added the new closing reason: timeout resolution

@Psykepro Psykepro force-pushed the feature/save-batch-constraints-in-db branch from 05fdf10 to a2b52eb Compare April 19, 2023 15:44
@Psykepro Psykepro merged commit b3d11c8 into develop Apr 20, 2023
@Psykepro Psykepro deleted the feature/save-batch-constraints-in-db branch April 20, 2023 07:03
@agnusmor agnusmor added this to the Release 0.1.0 milestone May 23, 2023
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.

Store ZKC and closing reason on batch table
3 participants