Expand description
Bootstrap Cache for the Autonomous Network
This crate provides a decentralized peer discovery and caching system for the Autonomi Network. It implements a robust peer management system with the following features:
- Decentralized Design: No dedicated bootstrap nodes required
- Cross-Platform Support: Works on Linux, macOS, and Windows
- Shared Cache: System-wide cache file accessible by both nodes and clients
- Concurrent Access: File locking for safe multi-process access
- Atomic Operations: Safe cache updates using atomic file operations
- Initial Peer Discovery: Fallback web endpoints for new/stale cache scenarios
Re-exports§
pub use bootstrap::Bootstrap;pub use cache_store::BootstrapCacheStore;pub use config::BootstrapConfig;pub use config::InitialPeersConfig;pub use contacts_fetcher::ContactsFetcher;pub use error::Error;pub use error::Result;
Modules§
Constants§
- ANT_
PEERS_ ENV - The name of the environment variable that can be used to pass peers to the node.
Functions§
- craft_
valid_ multiaddr - Craft a proper address to avoid any ill formed addresses
- craft_
valid_ multiaddr_ from_ str - ignore_peer_id is only used for nat-detection contact list
- get_
network_ version - multiaddr_
get_ peer_ id