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

Method new_with_node_config

crates/builder/core/src/test_utils/instance.rs:189–195  ·  view source on GitHub ↗

Creates a new local instance of the builder node with the given builder configuration, with a given Reth node configuration. This method does not prefund any accounts, so before sending any transactions make sure that sender accounts are funded.

(
        builder_config: BuilderConfig,
        node_config: NodeConfig<BaseChainSpec>,
    )

Source from the content-addressed store, hash-verified

187 /// This method does not prefund any accounts, so before sending any transactions
188 /// make sure that sender accounts are funded.
189 pub async fn new_with_node_config(
190 builder_config: BuilderConfig,
191 node_config: NodeConfig<BaseChainSpec>,
192 ) -> eyre::Result<Self> {
193 Box::pin(LocalInstanceBuilder::new(builder_config).with_node_config(node_config).build())
194 .await
195 }
196
197 /// Core launch routine shared by all constructors.
198 ///

Callers

nothing calls this directly

Calls 3

with_node_configMethod · 0.80
newFunction · 0.50
buildMethod · 0.45

Tested by

no test coverage detected