Skip to content

Commit 5c84f16

Browse files
committed
fix: remove signet_sendBundle
1 parent e088caf commit 5c84f16

File tree

2 files changed

+2
-29
lines changed

2 files changed

+2
-29
lines changed

crates/rpc/src/signet/endpoints.rs

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -5,36 +5,12 @@ use crate::{
55
};
66
use ajj::{HandlerCtx, ResponsePayload};
77
use reth_node_api::FullNodeComponents;
8-
use signet_bundle::{
9-
SignetBundleDriver, SignetCallBundle, SignetCallBundleResponse, SignetEthBundle,
10-
};
8+
use signet_bundle::{SignetBundleDriver, SignetCallBundle, SignetCallBundleResponse};
119
use signet_node_types::Pnt;
1210
use signet_types::SignedOrder;
1311
use std::time::Duration;
1412
use tokio::select;
1513

16-
pub(super) async fn send_bundle<Host, Signet>(
17-
hctx: HandlerCtx,
18-
bundle: SignetEthBundle,
19-
ctx: RpcCtx<Host, Signet>,
20-
) -> Result<(), String>
21-
where
22-
Host: FullNodeComponents,
23-
Signet: Pnt,
24-
{
25-
let task = |hctx: HandlerCtx| async move {
26-
let Some(tx_cache) = ctx.signet().tx_cache() else {
27-
return Err(SignetError::TxCacheUrlNotProvided.into_string());
28-
};
29-
30-
hctx.spawn(async move { tx_cache.forward_bundle(bundle).await.map_err(|e| e.to_string()) });
31-
32-
Ok(())
33-
};
34-
35-
await_handler!(@option hctx.spawn_blocking_with_ctx(task))
36-
}
37-
3814
pub(super) async fn send_order<Host, Signet>(
3915
hctx: HandlerCtx,
4016
order: SignedOrder,

crates/rpc/src/signet/mod.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,5 @@ where
1515
Host: FullNodeComponents,
1616
Signet: Pnt,
1717
{
18-
ajj::Router::new()
19-
.route("sendBundle", send_bundle)
20-
.route("sendOrder", send_order)
21-
.route("callBundle", call_bundle)
18+
ajj::Router::new().route("sendOrder", send_order).route("callBundle", call_bundle)
2219
}

0 commit comments

Comments
 (0)