Crate ant_bootstrap

Source
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 cache_store::BootstrapCacheStore;
pub use config::BootstrapCacheConfig;
pub use contacts::ContactsFetcher;
pub use error::Error;
pub use error::Result;

Modules§

cache_store
config
contacts
error

Structs§

InitialPeersConfig
Configurations to fetch the initial peers which is used to bootstrap the network. This could optionally also be used as a command line argument struct.

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