/** * Corestore 7.11+ constructor extras used by the seeder host store. * `treeCache` forwards to Hypercore default storage (proof/tree node cache). */ export const BARE_OS_CORESTORE_TREE_CACHE = { maxSize: 8192 } /** * @param {Record} [extra] */ export function bareOsCorestoreConstructOpts(extra) { return { treeCache: BARE_OS_CORESTORE_TREE_CACHE, ...(extra && typeof extra === 'object' ? extra : {}) } }