Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Looking up key event directly using dgkey (pre, dig) from db.evts instead of db.fons under the assumption that the event was first seen (accepted) #847

Open
SmithSamuelM opened this issue Aug 18, 2024 · 0 comments

Comments

@SmithSamuelM
Copy link
Collaborator

Feature request description/rationale

Events in .evts may be in escrow or may be duplicitous etc. In other words they are not guaranteed to have been validated and accepted as first seen.

Valid first seen events are indexed by sn in db.kels using snkey (pre, sn) or by fn in db.fels using fnkey (pre,fn) or in db.fons (dgkey (pre, dig). To find an event by its dgkey (pre,dig) that has been first seen one may use db.fons which indexes first seen events in .fels by their dgkey (pre, dig).

So lookup fn in db.fons given dgkey then lookup event in db.evts by dgkey since already have dgkey.
Task is to find places in code when the false assumption is being made that an event in .evts has been first seen without checking that the event is in .fels or .kels or .fons

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant