The index is wiped/reindexed depending on the -chronikscripthashindex (init param) value, the reindexing process takes about 12 minutes with the current blockchain.
After the initial is sync, new scripts are added to the index via the ScriptGroup index.
WIP
TODO:
- add APIs to fetch scripts via scripthash
- tests
This will be needed for the ElectrumX API. Ref T3598