Returns the bootstore configuration.
(&self, chain_id: u64)
| 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> { |