Files
zodia/app
Bendik Aagaard Lynghaug b8489dc024 phase 3: rewire ZodiaSyncNode against LogSync 0.6
Real sync layer back, now backed by a persistent p2panda-store SqliteStore
at $DATA_DIR/sync_log.db (separate from interpretations.db so we don't have
to share schemas with the rusqlite-era zodia-store rewrite).

API churn handled:
- MemoryStore → SqliteStore (persistent; LogStore + TopicStore impls come
  from p2panda-store, no custom TopicMap needed anymore)
- LogSync::builder(store, topic_map, endpoint, gossip) → builder(store, endpoint, gossip)
- TopicLogSyncEvent::Operation(op) → ::OperationReceived { operation, metrics }
- TopicLogSyncEvent::SyncStarted(_) → ::SyncStarted { metrics }
- TopicLogSyncEvent::SyncFinished(_) → ::SyncFinished { metrics }
- Header.public_key → verifying_key; Header.previous field removed
- Header.timestamp now Timestamp (use Timestamp::now())
- get_latest_entry / insert_operation now live on LogStore/OperationStore traits

Side effect: offline-catch-up of community interpretations is back online.

ZodiaSyncNode::spawn now requires the data_dir path so it can place its log
DB alongside the main store; caller updated.
2026-05-28 20:18:51 +02:00
..
2026-05-07 17:20:29 +02:00
2026-03-23 12:04:20 +01:00