EmerisHQ / demeris-backend

Monorepo containing all the Demeris backend code and infrastructure definitions.
GNU Affero General Public License v3.0
8 stars 1 forks source link

Check if we can run "state sync" with tracelistener instead of bulk import #716

Closed Pitasi closed 2 years ago

Pitasi commented 2 years ago

Original slack thread: https://allinbits.slack.com/archives/C038TFV4R96/p1650480753032249

The proposal is that we could be using the "state sync" feature, and hopefully this would emit the traces we need for populating our db. Potentially replacing bulk import.

Pitasi commented 2 years ago

I tested bitsong following their docs (https://docs.bitsong.io/blockchain/join-the-mainnet) and successfully performed a state sync.

Unfortunately, no traces were emitted so I'm afraid we can't use state sync instead of bulk import, we'll need to run the bulk import as we always did.

It's okay to use state sync (which seems pretty fast to sync) instead of manually downloading snaphots, and then run bulk import.