Skip to content

Ditch scanIds.json and "load" scans from the node. #195

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

Open
greenhat opened this issue Dec 4, 2022 · 0 comments
Open

Ditch scanIds.json and "load" scans from the node. #195

greenhat opened this issue Dec 4, 2022 · 0 comments

Comments

@greenhat
Copy link
Member

greenhat commented Dec 4, 2022

Motivation

from TG of the first public oracle v2 pool on testnet:

one thing about docker installs: it's best to mount a volume to keep the state, specifically the scanIDs.json file. If the oracle image is recreated and this file is not found, new scans will be registered on the node and old ones orphaned. Longer term maybe the oracle can parse the registered scans and recreate the scanIDs.json from the ones already registered instead of creating new ones.
Dockerfile: https://gist.github.com/error1100/d28ff2fdda983dd0234871495526afd4
docker-compose.yml: https://gist.github.com/error1100/5bc6e03b7e86b24be51e0d6ff8271f9b

https://t.me/c/1629893971/298

One option to do it is by asking the node for all registered scans on start and try to recognize ours by their queries (token ids). The idea is to find a scan for each of our token ids (from configs) and for each not found - register a scan.

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

No branches or pull requests

1 participant