dgarage / NBXplorer

NBitcoin Explorer
MIT License
319 stars 211 forks source link

How to restart Coin information #156

Open Fransebas opened 5 years ago

Fransebas commented 5 years ago

Hi, we have multiple coins being tracked on one server using NBXplorer and I would like to know if there is a way of erasing the tracked memory of a coin without affecting the others.

I already did the reindex on the node but I'll like to know if there is something I could do directly on NBX.

NicolasDorier commented 5 years ago

I don't understand your question. What do you mean "erasing tracked memory of a coin"?

Fransebas commented 5 years ago

Yes exactly that!

NicolasDorier commented 5 years ago

need more details

Fransebas commented 5 years ago

We have BTC, LTC, DASH, COLX being tracked in one server and we would like to erase the tracking memory related to COLX only

Fransebas commented 5 years ago

It turns out that our COLX node forked and got wrong information, and now NBX has wrong data and returns wrong balances on some accounts.

The accounts that made movements during the fork.

NicolasDorier commented 5 years ago

There is no easy way to do. You need to find out how to delete the rows in the database in code.

Fransebas commented 5 years ago

Can you give me a little clarity on where is the code that modifies the DB so that maybe I implement a function to do that

NicolasDorier commented 5 years ago

I sadly don't have time to explain to you in details, as I don't know myself. What I can tell you is that all data access are done in Repository.cs. Each altcoin have their own Repository instance.