pub fn validate_handshake(
local: &HandshakeRequest,
remote: &HandshakeRequest,
) -> HandshakeResponseExpand description
Validate a remote node’s HandshakeRequest against local configuration.
Returns a HandshakeResponse indicating whether the connection is accepted.
The check order is:
- Wire protocol compatibility (same MAJOR version)
- Adapter match (must be the same adapter)