P2P Registry
Overview
┌─────────────────────────────────────────────────────────────────────────────┐
│ P2P Registry Node │
│ │
│ External Interfaces │
│ ┌─────────────────────┐ ┌─────────────────────┐ │
│ │ gRPC Server │ │ P2P Node │ │
│ │ (Port 50050) │ │ (Port 8828) │ │
│ │ │ │ │ │
│ │ • Node registration│ │ • Kademlia DHT │ │
│ │ • Validation RPCs │ │ • Peer discovery │ │
│ │ • Subnet mgmt │ │ • Data replication │ │
│ └─────────────────────┘ └─────────────────────┘ │
│ │
│ Core Services │
│ ┌─────────────────────────────────────────────────────────────────────┐ │
│ │ ┌───────────────┐ ┌───────────────┐ ┌───────────────┐ │ │
│ │ │ Preprocessing │ │ Completion │ │ Subnet │ │ │
│ │ │ Service │ │ Service │ │ Manager │ │ │
│ │ └───────────────┘ └───────────────┘ └───────────────┘ │ │
│ │ ┌───────────────┐ ┌───────────────┐ ┌───────────────┐ │ │
│ │ │ Validator │ │ Mempool │ │ DHT Storage │ │ │
│ │ │ Pool │ │ │ │ │ │ │
│ │ └───────────────┘ └───────────────┘ └───────────────┘ │ │
│ └─────────────────────────────────────────────────────────────────────┘ │
│ │
│ Blockchain Sync │
│ ┌─────────────────────────────────────────────────────────────────────┐ │
│ │ Validator Registry Contract Sync (periodic) │ │
│ └─────────────────────────────────────────────────────────────────────┘ │
│ │
└─────────────────────────────────────────────────────────────────────────────┘Features
Quick Start
Build
Run
Architecture
Internal Modules
Module
File
Purpose
Service Dependencies
gRPC API
P2PRegistryService
Node Management
RPC
Request
Response
Description
Validation
RPC
Request
Response
Description
Subnet Management
RPC
Request
Response
Description
Validator Management
RPC
Request
Response
Description
P2P Networking
Kademlia DHT
Peer Discovery
Bootstrap Nodes
Validator Pool
Features
Configuration
Mempool
Structure
TTL Configuration
Entry Type
Default TTL
Cleanup
Subnet Manager
Subnet Creation Flow
SubnetMetadata
Configuration
Command Line Arguments
Argument
Required
Default
Description
Environment Variables
Variable
Required
Default
Description
Background Tasks
Automatic Tasks
Task
Interval
Purpose
Task Implementation
Monitoring
Metrics
Metric
Type
Description
Health Endpoint
Troubleshooting
Common Issues
Related Documentation
Last updated
