codechain-indexer icon indicating copy to clipboard operation
codechain-indexer copied to clipboard

Improve stability

Open joojis opened this issue 5 years ago • 0 comments

The current indexing process is a serial process.

downloading block > saving block info > saving transaction info > saving UTXO info > saving address info > saving address's balance info > ... etc

The problem is, the whole system is broken if a single process goes wrong. For example, saving the balance info should not affect the UTXO data and its API, but, the next block will not be downloaded if the balance logic is broken.

joojis avatar Oct 07 '19 02:10 joojis