ordinals / ord

👁‍🗨 Rare and exotic sats
https://ordinals.com
Creative Commons Zero v1.0 Universal
3.83k stars 1.36k forks source link

Keep index synced in background #1322

Open casey opened 1 year ago

casey commented 1 year ago

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:

batcavekid commented 1 year ago

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)
kvnn commented 1 year ago

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

Hi. Could you share your script?

nhodges commented 1 year ago

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?

liuser commented 1 year ago

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

raphjaph commented 1 year ago

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