-
Notifications
You must be signed in to change notification settings - Fork 68
Add websocket support #401
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
Conversation
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
e0bfa68
to
5a090e5
Compare
#[metric(describe = "Count of times flashblocks get_block_by_number is called")] | ||
pub get_block_by_number: Counter, | ||
#[metric(describe = "Count of times flashblocks block_by_number is called")] | ||
pub block_by_number: Counter, |
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.
are there any docs that need updating for this?
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.
will check
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.
why are we removing the proxy layer? the implementation is brittle to breaking when new rpc methods come through from op-node
|
all methods goes through the authrpc, so any method through the regular rpc will also break like miner_, eth_ |
crates/rollup-boost/src/server.rs
Outdated
|
||
#[rpc(server, client)] | ||
#[rpc(server, client, namespace = "engine")] | ||
pub trait EngineApi { |
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.
maybe we can move all the method we don't have custom logic for (all the methods we just forward to l2) to a separate file to not clutter the server.rs file
I won't fix kurtosis in this PR |
Removed previous http proxy implmenetaion Bump reth Disable flashblocks-rpc
ceb634c
to
f96f9f9
Compare
crates/rollup-boost/src/server.rs
Outdated
} | ||
|
||
async fn block_by_hash(&self, hash: B256, full: bool) -> RpcResult<Option<RpcBlock<Optimism>>> { | ||
Ok(self.builder_client.block_by_hash(hash, full).await?) |
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.
remove before merge
f96f9f9
to
0c1fb4c
Compare
closes #393
Removed custom traits for APIs, now we are using reth traits directly. This ensures that we will catch all updates.
Fixed issue with vulnerable crate.
Temporary removed flashblocks-rpc from workspace, as it severely outdated.
Bumped reth to 1.7.0