1 unstable release

0.1.0-alpha.2 Jan 27, 2024

#2 in #cometbft


24K SLoC

Crate Docs

See the repo root for build status, license, Rust version, etc.

Light Client CLI

CLI for the CometBFT Light Client.


Usage: cometbft-light-client-cli [OPTIONS] --chain-id <CHAIN_ID> --primary <PRIMARY> --witnesses <WITNESSES> --trusted-height <TRUSTED_HEIGHT> --trusted-hash <TRUSTED_HASH>

      --chain-id <CHAIN_ID>
          Identifier of the chain
      --primary <PRIMARY>
          Primary RPC address
      --witnesses <WITNESSES>
          Comma-separated list of witnesses RPC addresses
      --trusted-height <TRUSTED_HEIGHT>
          Height of trusted header
      --trusted-hash <TRUSTED_HASH>
          Hash of trusted header
      --height <HEIGHT>
          Height of the header to verify
      --trust-threshold <TRUST_THRESHOLD>
          Trust threshold [default: 2/3]
      --trusting-period <TRUSTING_PERIOD>
          Trusting period, in seconds (default: two weeks) [default: 1209600]
      --max-clock-drift <MAX_CLOCK_DRIFT>
          Maximum clock drift, in seconds [default: 5]
      --max-block-lag <MAX_BLOCK_LAG>
          Maximum block lag, in seconds [default: 5]
  -v, --verbose...
          Increase verbosity, can be repeated up to 2 times
  -h, --help
          Print help
  -V, --version
          Print version


~564K SLoC