-
Notifications
You must be signed in to change notification settings - Fork 68
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
Conversation
There was a problem hiding this 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
…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()))? |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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?
Signed-off-by: nomaxg <noahgolub2@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
Closes #857