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

Reduce max_blocks in the commit task if we exceed the block gas limit #882

Merged
merged 3 commits into from
Dec 21, 2023

Conversation

nomaxg
Copy link
Contributor

@nomaxg nomaxg commented Dec 20, 2023

Closes #857

Copy link
Member

@jbearer jbearer left a comment

Choose a reason for hiding this comment

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

Generally looks good, I have some suggestions. The changes in utils are a nice improvement, thanks for that

sequencer/src/hotshot_commitment.rs Outdated Show resolved Hide resolved
sequencer/src/hotshot_commitment.rs Outdated Show resolved Hide resolved
…that we can increase if we succeed

Signed-off-by: nomaxg <noahgolub2@gmail.com>
.block_height()
.call()
.await
.map_err(|e| SyncError::Other(e.into()))?
Copy link
Member

Choose a reason for hiding this comment

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

Nit: implement From<anyhow::Error> for SyncError and you can just use ? without this map_err

Copy link
Contributor Author

Choose a reason for hiding this comment

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

But this underlying error isn't an anyhow:Error, so we'd still need to do a double mapping somehow right?

sequencer/src/hotshot_commitment.rs Outdated Show resolved Hide resolved
Signed-off-by: nomaxg <noahgolub2@gmail.com>
Copy link
Member

@jbearer jbearer left a comment

Choose a reason for hiding this comment

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

Looks good

@nomaxg nomaxg merged commit f498d5e into main Dec 21, 2023
9 checks passed
@nomaxg nomaxg deleted the exceeds-gas-limit branch December 21, 2023 17:01
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.

Commit task gets stuck forever if number of leaves to send exceeds block gas limit
2 participants