1 unstable release

new 0.1.0 Dec 18, 2024

#5 in #bootstrap

GPL-3.0 license

185KB
3.5K SLoC

Bootstrap Cache

A robust peer caching system for the Autonomi Network that provides persistent storage and management of network peer addresses. This crate handles peer discovery, caching, and reliability tracking with support for concurrent access across multiple processes.

Features

Storage and Accessibility

  • System-wide accessible cache location
  • Configurable primary cache location
  • Cross-process safe with file locking
  • Atomic write operations to prevent cache corruption

Data Management

  • Automatic cleanup of stale and unreliable peers
  • Configurable maximum peer limit
  • Peer reliability tracking (success/failure counts)
  • Atomic file operations for data integrity

License

This SAFE Network Software is licensed under the General Public License (GPL), version 3 (LICENSE http://www.gnu.org/licenses/gpl-3.0.en.html).


lib.rs:

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

Dependencies

~73MB
~1.5M SLoC