Function sync

  • Syncs the target with the source. Any changes in target but not in source will be removed. Any changes in source but not in target will be added. Useful for fetching all the remote buckets and adding them to the blockstore.

    Parameters

    • blockstore: Blockstore<{}, {}, {}, {}, {}, {}, {}, {}>
    • target: ProllyTree
    • source: ProllyTree
    • OptionalremoteBlockstore: Blockstore<{}, {}, {}, {}, {}, {}, {}, {}>

    Returns AsyncIterable<CID[]>