aboutsummaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Add unban() to BanList and expose it on Nodemurilo ijanc2026-03-252-0/+11
| | | | | | Allows callers to clear bans for specific addresses, needed for re-join logic where bootstrap peers may have been banned after transient failures.
* Remove stale peers without replacement from routing tablemurilo ijanc2026-03-253-12/+16
| | | | | | | When a peer exceeds STALE_THRESHOLD failures and the replacement cache is empty, remove it outright instead of leaving it in the bucket indefinitely. Prevents phantom peer accumulation in small clusters where the cache rarely fills.
* Initial commitv0.1.0murilo ijanc2026-03-2428-0/+11763
NAT-aware Kademlia DHT library for peer-to-peer networks. Features: - Distributed key-value storage (iterative FIND_NODE, FIND_VALUE, STORE) - NAT traversal via DTUN hole-punching and proxy relay - Reliable Datagram Protocol (RDP) with 7-state connection machine - Datagram transport with automatic fragmentation/reassembly - Ed25519 packet authentication - 256-bit node IDs (Ed25519 public keys) - Rate limiting, ban list, and eclipse attack mitigation - Persistence and metrics - OpenBSD and Linux support