Skip to content

Commit 4b22905

Browse files
committed
resest
1 parent b78442f commit 4b22905

4 files changed

Lines changed: 30 additions & 433 deletions

File tree

bin/lumen/src/main.rs

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -383,12 +383,20 @@ where
383383
pub struct RollkitNode {
384384
/// Rollkit-specific arguments
385385
pub args: RollkitArgs,
386+
/// Transaction forwarding configuration
387+
pub forwarding: lumen_node::ForwardingConfig,
386388
}
387389

388390
impl RollkitNode {
389391
/// Create a new rollkit node with the given arguments
390-
pub const fn new(args: RollkitArgs) -> Self {
391-
Self { args }
392+
pub fn new(args: RollkitArgs) -> Self {
393+
let forwarding = lumen_node::ForwardingConfig {
394+
sequencer_http: args.sequencer_http.clone(),
395+
sequencer_auth: args.sequencer_auth.clone(),
396+
disable_tx_pool_gossip: args.disable_tx_pool_gossip,
397+
..Default::default()
398+
};
399+
Self { args, forwarding }
392400
}
393401
}
394402

@@ -400,9 +408,6 @@ impl NodeTypes for RollkitNode {
400408
type Payload = RollkitEngineTypes;
401409
}
402410

403-
/// Rollkit node addons configuring RPC types with custom engine validator
404-
pub type RollkitNodeAddOns<N> = RpcAddOns<N, EthereumEthApiBuilder, RollkitEngineValidatorBuilder>;
405-
406411
/// Rollkit network builder that optionally disables transaction pool gossip
407412
#[derive(Debug, Clone, Default)]
408413
pub struct RollkitNetworkBuilder {
@@ -453,6 +458,8 @@ where
453458
}
454459
}
455460

461+
pub type RollkitNodeAddOns<N> = RpcAddOns<N, EthereumEthApiBuilder, RollkitEngineValidatorBuilder>;
462+
456463
impl<N> Node<N> for RollkitNode
457464
where
458465
N: FullNodeTypes<

crates/node/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ async-trait.workspace = true
6565
delegate = "0.13.3"
6666
eyre.workspace = true
6767
futures.workspace = true
68-
jsonrpsee = {version = "0.25", features = ["server", "macros"]}
68+
jsonrpsee = {version = "0.25", features = ["server", "macros", "http-client"]}
6969
parking_lot = "0.12"
7070
serde = {workspace = true, features = ["derive"]}
7171
serde_json.workspace = true

0 commit comments

Comments
 (0)