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

DDO Index: Isolated node #815

Open
alexcos20 opened this issue Jan 22, 2025 · 0 comments · May be fixed by #826
Open

DDO Index: Isolated node #815

alexcos20 opened this issue Jan 22, 2025 · 0 comments · May be fixed by #826
Assignees
Labels
Type: Enhancement New feature or request

Comments

@alexcos20
Copy link
Member

In order to implement the concept of isolated node, we need some restrictions on what assets are indexed. We already have validators, but we need to add a list of publishers as well.

To do:

  • add AUTHORIZED_PUBLISHERS env variable
  • add AUTHORIZED_PUBLISHERS _LIST env variable

When indexing a new asset, if any of those envs is defined, check the publisher address and index only if it's a match (either on AUTHORIZED_PUBLISHERS , or in AUTHORIZED_PUBLISHERS_LIST with a matching chainId)

  • AUTHORIZED_PUBLISHERS : List of address of accounts Example: "["0x967da4048cD07aB37855c090aAF366e4ce1b9F48","0x388C818CA8B9251b393131C08a736A67ccB19297"]"

  • AUTHORIZED_PUBLISHERS_LIST looks like

{
 "1": ["0x123","0x124"],
 "2": ["0x345"]
}

(Which means: If an asset is published on chainId 1, then see if the publisher is on the accessList contract 0x123 or 0x124

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants