MCPcopy Create free account
hub / github.com/base/base / components

Method components

crates/execution/runner/src/node.rs:67–92  ·  view source on GitHub ↗

Returns the components for the given [`RollupArgs`].

(&self)

Source from the content-addressed store, hash-verified

65
66 /// Returns the components for the given [`RollupArgs`].
67 pub fn components<Node>(&self) -> BaseNodeComponentBuilder<Node>
68 where
69 Node: FullNodeTypes<Types: BaseNodeTypes>,
70 {
71 let RollupArgs {
72 disable_txpool_gossip,
73 compute_pending_block,
74 discovery_v4,
75 max_inflight_delegated_slots,
76 ..
77 } = self.args;
78 ComponentsBuilder::default()
79 .node_types::<Node>()
80 .pool(
81 BasePoolBuilder::default()
82 .with_max_inflight_delegated_slots(max_inflight_delegated_slots),
83 )
84 .executor(BaseExecutorBuilder::default())
85 .payload(BasicPayloadServiceBuilder::new(
86 BasePayloadBuilder::new(compute_pending_block)
87 .with_da_config(self.da_config.clone())
88 .with_gas_limit_config(self.gas_limit_config.clone()),
89 ))
90 .network(BaseNetworkBuilder::new(disable_txpool_gossip, !discovery_v4))
91 .consensus(BaseConsensusBuilder::default())
92 }
93
94 /// Returns [`BaseAddOnsBuilder`] with configured arguments.
95 pub fn add_ons_builder<NetworkT: RpcTypes>(&self) -> BaseAddOnsBuilder<NetworkT> {

Callers 3

build_componentsMethod · 0.45
build_componentsMethod · 0.45
newMethod · 0.45

Calls 7

payloadMethod · 0.80
networkMethod · 0.45
poolMethod · 0.45
with_gas_limit_configMethod · 0.45
with_da_configMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected