cfxcore/light_protocol/
mod.rs1mod common;
6mod config;
7mod error;
8mod handler;
9mod message;
10mod provider;
11pub mod query_service;
12
13use network::{service::ProtocolVersion, ProtocolId};
14
15const LIGHT_PROTOCOL_ID: ProtocolId = *b"clp"; pub const LIGHT_PROTOCOL_VERSION: ProtocolVersion = ProtocolVersion(2);
17const LIGHT_PROTOCOL_OLD_VERSIONS_TO_SUPPORT: u8 = 2;
19pub const LIGHT_PROTO_V1: ProtocolVersion = ProtocolVersion(1);
21pub const LIGHT_PROTO_V2: ProtocolVersion = ProtocolVersion(2);
22
23use error::handle as handle_error;
24
25pub use config::Configuration as LightNodeConfiguration;
26pub use error::Error;
27pub use handler::Handler;
28pub use provider::Provider;
29pub use query_service::QueryService;