trezor / blockbook

:blue_book: Trezor address/account balance backend
https://trezor.io
GNU Affero General Public License v3.0
653 stars 647 forks source link

starting order of backend and blockbook services #1062

Closed dev-dantealighieri closed 4 months ago

dev-dantealighieri commented 6 months ago

in the tutorial, you are mentioning that we should first run the backend, then after synchronization, run the blockbook service, why is that required?

my machine is good, can i start them at the same time, and let them sync ledger and index database at the same time?

thanks.

vdovhanych commented 6 months ago

While it will probably work, there might be an issue with data indexing for the blockbook db and a chance of data corruption. That is the main reason we suggest indexing an already synchronized backend.

dev-dantealighieri commented 4 months ago

@vdovhanych after synchronization, they continue to run together, does that mean there can be corruption after installation?

also it would be great if we can run those together, because both of them took significant amount of time

thanks, dante

martinboehm commented 4 months ago

If they run without any errors, there is no corruption. In general it is faster to sync Blockbook to fully synced backend but it can be done in parallel.