LightClientSync extension

Bisection sync for a light client.

on

Methods

syncTo(Checkpoint target, int targetHeight, Checkpoint? fetch(int height)) → void

Available on LightClient, provided by the LightClientSync extension

Reaches target at targetHeight, fetching intermediate checkpoints while the overlap is too thin. Throws on a hard refusal or a missing checkpoint.