Bitcoin
Bitcoin Core – Why does the chain state keep getting corrupted after many RPC calls?
I’m experimenting with blockchain by writing a block indexer/local node monitor.
In my tests, I wrote a small Python script that uses AuthServiceProxy.batch() to get the hash of each block.
Even after attempting hundreds of thousands, maybe a million RPC calls, I discovered that my chain state was corrupted.
Bitcoin Core crashes on load and requires the entire blockchain to be re-indexed. This has happened twice now.
What am I doing wrong?