[][src]Function libra_json_rpc::bootstrap

pub fn bootstrap(
    address: SocketAddr,
    batch_size_limit: u16,
    page_size_limit: u16,
    content_len_limit: usize,
    libra_db: Arc<dyn DbReader>,
    mp_sender: MempoolClientSender,
    role: RoleType,
    chain_id: ChainId
) -> Runtime

Creates HTTP server (warp-based) that serves JSON RPC requests Returns handle to corresponding Tokio runtime