grin_p2p::msg
pub fn write_message<T: Writeable>( stream: &mut dyn Write, msg: T, msg_type: Type, version: ProtocolVersion) -> Result<(), Error>