Skip to main content

Module replication

Module replication 

Source
Expand description

Replication subsystem for the Autonomi network.

Implements Kademlia-style replication with:

  • Fresh replication with PoP verification
  • Neighbor sync with round-robin cycle management
  • Batched quorum verification
  • Storage audit protocol (anti-outsourcing)
  • PaidForList persistence and convergence
  • Responsibility pruning with hysteresis

Modules§

admission
Neighbor-sync hint admission rules (Section 7).
audit
Storage audit protocol (Section 15).
audit_coordinator
Auditor-side per-target admission for outbound AuditChallenges.
bootstrap
New-node bootstrap logic (Section 16).
commitment
Storage-bound audit via piggybacked commitments.
commitment_state
Responder-side commitment builder + rotation state.
config
Tunable parameters for the replication subsystem.
fresh
Fresh replication (Section 6.1).
neighbor_sync
Neighbor replication sync (Section 6.2).
paid_list
Persistent PaidForList backed by LMDB.
pointer
Pointer replication (ADR-0016).
possession
Delayed possession verification for fresh replication (ADR-0003).
protocol
Wire protocol messages for the replication subsystem.
pruning
Post-cycle responsibility pruning (Section 11).
quorum
Quorum verification logic (Section 9).
recent_provers
Holder-eligibility cache: which peers recently proved storage of which key, against which commitment.
retention
Pressure-gated retention (ADR-0028).
scheduling
Scheduling and queue management (Section 12).
slice
BLAKE3 verified-slice possession proofs for the storage-commitment audit (ADR-0002 round 2, V2-685).
storage_commitment_audit
Gossip-triggered contiguous-subtree storage audit (ADR-0002).
subtree
Gossip-triggered contiguous-subtree storage proof (ADR-0002).
types
Core types for the replication subsystem.

Structs§

MonetizedPinEvent
ADR-0004: a commitment that backed a payment, surfaced by the payment verifier’s cross-check so it can receive a deterministic first audit.
ReplicationEngine
The replication engine manages all replication background tasks and state.

Functions§

fresh_offer_admission_refusals
Cumulative fresh-offer admission refusals in this process.
fresh_offer_refusals_global_pool
Fresh-offer refusals caused by the class-wide pool being exhausted.
fresh_offer_refusals_per_peer_share
Fresh-offer refusals caused by one source exhausting its per-peer share.
paid_notify_admission_refusals
Cumulative paid-list notification admission refusals in this process.