ord icon indicating copy to clipboard operation
ord copied to clipboard

Keep index synced in background

Open casey opened this issue 2 years ago • 3 comments

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 having ord daemon run in the background?

casey avatar Jan 21 '23 19:01 casey

Would be ideal. I am sync'ing in the background rn with a script but native better.

Idea for faster initial sync:

  1. instruct user to sync before bitcoin node is fully synchronized: ord index
  2. later, if index is daemon, have it sync periodically during bitcoin node sync (similar to this issue)

batcavekid avatar Jan 21 '23 23:01 batcavekid

I am sync'ing in the background rn with a script but native better.

Hi. Could you share your script?

kvnn avatar Feb 12 '23 18:02 kvnn

Would be ideal. I am sync'ing in the background rn with a script but native better.

Idea for faster initial sync:

  1. instruct user to sync before bitcoin node is fully synchronized: ord index
  2. 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?

nhodges avatar Feb 16 '23 02:02 nhodges

If this automatic synchronization issue is resolved, please let me know

liuser avatar Jul 30 '23 06:07 liuser

Would be cool to have this feature! I think @niftynei mentioned she was working on this.

raphjaph avatar Aug 22 '23 15:08 raphjaph