network: add hub registration, Redis persistence, and federated mesh join protocol
Some checks failed
Systemd Sync / sync-systemd (push) Waiting to run
CLI Tests / test-cli (push) Has been cancelled
Integration Tests / test-service-integration (push) Has been cancelled
Python Tests / test-python (push) Has been cancelled
Security Scanning / security-scan (push) Has been cancelled
Documentation Validation / validate-docs (push) Has been cancelled
API Endpoint Tests / test-api-endpoints (push) Has been cancelled

- Change default P2P port from 7070 to 8001 in config and .env.example
- Add redis_url configuration option for hub persistence (default: redis://localhost:6379)
- Implement DNS-based hub registration/unregistration via HTTPS API endpoints
- Add Redis persistence for hub registrations with 1-hour TTL
- Add island join request/response protocol with member list and blockchain credentials
- Add GPU marketplace tracking (offers, bids, providers) in hub manager
- Add
This commit is contained in:
aitbc
2026-04-13 11:47:34 +02:00
parent fefa6c4435
commit d72945f20c
42 changed files with 3802 additions and 1022 deletions

View File

@@ -266,8 +266,9 @@ class TestPhase2NetworkInfrastructure:
port = 8000
public_key = "test_public_key"
node_id1 = p2p_discovery.generate_node_id(address, port, public_key)
node_id2 = p2p_discovery.generate_node_id(address, port, public_key)
hostname = "node.example.com"
node_id1 = p2p_discovery.generate_node_id(hostname, address, port, public_key)
node_id2 = p2p_discovery.generate_node_id(hostname, address, port, public_key)
assert node_id1 == node_id2 # Same inputs should generate same ID
assert len(node_id1) == 64 # SHA256 hex length