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

Method configure_unified_auth_endpoint

crates/execution/cli/src/node.rs:216–230  ·  view source on GitHub ↗

Configures the embedded execution node auth endpoint used by unified Base binaries.

(node_config: &mut NodeConfig<BaseChainSpec>)

Source from the content-addressed store, hash-verified

214
215 /// Configures the embedded execution node auth endpoint used by unified Base binaries.
216 pub fn configure_unified_auth_endpoint(node_config: &mut NodeConfig<BaseChainSpec>) {
217 let auth_ipc_path = if node_config.rpc.auth_ipc_path == DEFAULT_ENGINE_API_IPC_ENDPOINT {
218 Some(node_config.datadir().data_dir().join(DEFAULT_UNIFIED_AUTH_IPC_FILENAME))
219 } else {
220 None
221 };
222
223 node_config.rpc.auth_ipc = true;
224 node_config.rpc.auth_port = 0;
225 node_config.rpc.auth_addr = Ipv4Addr::LOCALHOST.into();
226
227 if let Some(auth_ipc_path) = auth_ipc_path {
228 node_config.rpc.auth_ipc_path = auth_ipc_path.to_string_lossy().into_owned();
229 }
230 }
231
232 /// Returns the configured authenticated Engine API IPC path from the supplied node config.
233 pub const fn auth_ipc_path_for(node_config: &NodeConfig<BaseChainSpec>) -> &str {

Callers

nothing calls this directly

Calls 1

datadirMethod · 0.45

Tested by

no test coverage detected