mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-01-07 22:04:03 -05:00
basically the one dag we had before is now at least one (arbitrarily 5 max) are addressed by their genesis event hash, managed in DAGStore and are sorted chronologically. creating a new EventGraph instance means creating the configured number of dags deterministically and open those trees in DB, created if not existing. prune now drops the oldest tree and adds a new one to the considered trees. each dag is paired with its unreferenced tips and are updated accordingly. fetching an event searches through all dags and fetch the wanted one. in protocol, requesting tips are done by sending the dag_name of which the unreferenced tips are requested (probably breaks comp, still WIP)