@adhdev/daemon-core 0.9.77-rc.47 → 0.9.77-rc.48

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -7362,26 +7362,8 @@ async function syncMeshes(transport) {
7362
7362
  }
7363
7363
  }
7364
7364
  }
7365
- if (transport.syncMeshLedger) {
7366
- for (const local of localMeshes) {
7367
- try {
7368
- await syncMeshLedger(local.id, transport);
7369
- } catch (e) {
7370
- result.errors.push(`Ledger sync failed for "${local.name}": ${e.message}`);
7371
- }
7372
- }
7373
- }
7374
7365
  return result;
7375
7366
  }
7376
- async function syncMeshLedger(meshId, transport) {
7377
- if (!transport.syncMeshLedger) return;
7378
- const { readLedgerEntries: readLedgerEntries2, appendRemoteLedgerEntries: appendRemoteLedgerEntries2 } = await Promise.resolve().then(() => (init_mesh_ledger(), mesh_ledger_exports));
7379
- const localEntries = readLedgerEntries2(meshId);
7380
- const res = await transport.syncMeshLedger(meshId, { newEntries: localEntries });
7381
- if (res.missingEntries && res.missingEntries.length > 0) {
7382
- appendRemoteLedgerEntries2(meshId, res.missingEntries);
7383
- }
7384
- }
7385
7367
 
7386
7368
  // src/index.ts
7387
7369
  init_mesh_ledger();