Returns the components for the given [`RollupArgs`].
(&self)
| 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> { |
no test coverage detected