See the repo root for build status, license, rust version, etc.
Light-Client
Implementation of the Light Client Verification and Fork Detection protocols.
Documentation
See documentation on crates.io.
Example
The code below demonstrates the main use case for the Tendermint Light Client: syncing to the latest block, verifying it, and performing fork detection.
Please refer to the light_client example for fully working code.
let primary_instance: Instance = make_instance;
let witness_instance: Instance = make_instance;
let mut peer_addr = new;
peer_addr.insert;
peer_addr.insert;
let peer_list = builder
.primary
.witness
.build;
let mut supervisor = new;
let mut handle = supervisor.handle;
// Spawn the supervisor in its own thread.
spawn;
loop