Function diem_json_rpc::runtime::bootstrap
source · pub fn bootstrap(
address: SocketAddr,
batch_size_limit: u16,
page_size_limit: u16,
content_len_limit: usize,
tls_cert_path: &Option<String>,
tls_key_path: &Option<String>,
diem_db: Arc<dyn MoveDbReader>,
mp_sender: MempoolClientSender,
role: RoleType,
chain_id: ChainId,
stream_config: &StreamConfig
) -> Runtime
Expand description
Creates HTTP server (warp-based) that serves JSON RPC requests Returns handle to corresponding Tokio runtime