ord
ord copied to clipboard
Keep index synced in background
Currently, the index syncs whenever you run a command. It would be nice if it were possible to run the index as a daemon in the background, and have ord
connect to it whenever it needed to query the index state. This is a pretty large feature, since we'd need to:
- Add a command for running the index as a daemon
- Create an API for querying the daemon
- Modify existing commands to communicate with the daemon via the API
- Figure out if this mode is required or optional, e.g. can you still use
ord
without havingord daemon
run in the background?
Would be ideal. I am sync'ing in the background rn with a script but native better.
Idea for faster initial sync:
- instruct user to sync before bitcoin node is fully synchronized:
ord index
- later, if index is daemon, have it sync periodically during bitcoin node sync (similar to this issue)
I am sync'ing in the background rn with a script but native better.
Hi. Could you share your script?
Would be ideal. I am sync'ing in the background rn with a script but native better.
Idea for faster initial sync:
- instruct user to sync before bitcoin node is fully synchronized:
ord index
- later, if index is daemon, have it sync periodically during bitcoin node sync (similar to this issue)
@batcavekid
:wave: are you just running ord wallet inscriptions
or something at some interval?
If this automatic synchronization issue is resolved, please let me know
Would be cool to have this feature! I think @niftynei mentioned she was working on this.