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

Method bootstore

crates/consensus/cli/src/bootnode.rs:351–361  ·  view source on GitHub ↗

Returns the bootstore configuration.

(&self, chain_id: u64)

Source from the content-addressed store, hash-verified

349
350 /// Returns the bootstore configuration.
351 pub fn bootstore(&self, chain_id: u64) -> Option<BootStoreFile> {
352 if self.disable_bootstore {
353 None
354 } else {
355 Some(
356 self.bootstore
357 .clone()
358 .map_or(BootStoreFile::Default { chain_id }, BootStoreFile::Custom),
359 )
360 }
361 }
362
363 /// Parses configured bootnodes.
364 pub fn bootnodes(&self) -> eyre::Result<BootNodes> {

Callers 1

discovery_driverMethod · 0.80

Calls 1

cloneMethod · 0.45

Tested by

no test coverage detected