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
-
InterfacesClassDescriptionInterface for the initial chain synchronization component.Lifecycle interface for the P2P TCP node server.Lifecycle interface for the P2P peer manager.