ordspv
    Preparing search index...

    Interface SyncOptions

    interface SyncOptions {
        batchSize?: number;
        checkpoint?: { height: number; root: string };
        maxReorgDepth?: number;
    }
    Index
    batchSize?: number

    headers per request (Electrum servers commonly cap at 2016)

    checkpoint?: { height: number; root: string }

    optional Electrum cp_height anchoring: when set, every batch (whose end is ≤ checkpoint.height) is requested with cp_height and the returned branch must fold the batch's last header hash to root (bitcoin-style merkle over block hashes 0..height, hex, display order). Roots are derivable from any fully synced chain via blockHashMerkleRoot().

    maxReorgDepth?: number

    how deep a tip reorg we tolerate by truncating and re-requesting