trueblocks-core
trueblocks-core copied to clipboard
chifra scrape: do not allow running the scraper twice on the same machine with the same chain
Our C++ code used to protect against running the scraper twice (as well as protecting against running chifra export when the scraper was writing the database). That got lost in the new GoLang code.
Also, do not start chifra init if the scrape is running. Totally mess it up you will.
To reproduce:
In one window, run chifra scrape --chain sepolia
Open another window and run chifra scrape --chain sepolia. The second one should not start, but it does, and it reeks havok.