Package com.privatechain.core.network


package com.privatechain.core.network
Lifecycle interfaces for network subsystems, injected by blockchain-network.

These interfaces decouple blockchain-core from the Netty implementation in blockchain-network, preserving the zero-mandatory-dependency contract of the core module (design.md ยง7.1, ADR-001).

Interfaces:

  • NodeServerLifecycle โ€” start/stop contract for the TCP server that accepts inbound peer connections.
  • PeerManagerLifecycle โ€” start/stop contract for the component that manages peer connections and heartbeats.
  • ChainSyncer โ€” contract for the component that synchronizes the local chain with the network on startup.
Since:
1.0.0
  • Interfaces
    Class
    Description
    Interface for the initial chain synchronization component.
    Lifecycle interface for the P2P TCP node server.
    Lifecycle interface for the P2P peer manager.