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

Indexer: decide when to reindex #806

Open
alexcos20 opened this issue Jan 20, 2025 · 0 comments
Open

Indexer: decide when to reindex #806

alexcos20 opened this issue Jan 20, 2025 · 0 comments
Labels

Comments

@alexcos20
Copy link
Member

alexcos20 commented Jan 20, 2025

As soon as we merge #525 and derivates(526-528), we will change the structure of the DDO.
But existing nodes will not reindex old assets, only new ones, leading to inconsistency .

So, node must know when to reindex, based on version.

Proposal:

  • use node version(take it from package.lock) to decide if action is needed
  • hardcode a "min_version" in the code. At startup, if db.version is null, or lower that "min_version", then reset all chains and store current version (take it from package.lock)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant