-
Notifications
You must be signed in to change notification settings - Fork 103
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
chore(engine): Migrate To Alloy #241
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.
LGTM. Feel free to merge once conflicts are resolved
src/l1/chain_watcher.rs
Outdated
.map(|log| UserDeposited::try_from(log).unwrap()) | ||
.collect::<Vec<UserDeposited>>(); | ||
|
||
// TODO: Optimize this to batch requests. |
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.
Just want to note that this should be a high priority. Perf was pretty significantly effected by not batching these when I was first testing it out.
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.
I was fortunately mistaken here - the alloy_rpc_types::Log
does contain the hydrated block information, which is the object returned by the provider's get_logs
method. I had confused this with the alloy_primitives::Log
type. Fixing it right now and will push the fix :)
ca41e5a
to
783b18f
Compare
Description
Note
This should be merged after #240
Migrates
engine
module types to Alloy.Metadata
Fixes #232