RecursiveMutex cs_main
Mutex to guard access to validation specific variables, such as reading or changing the chainstate.
void StopIndex(BaseIndex &index, node::NodeContext &node)
Drain validation callbacks before stopping an index, matching Shutdown() in init.cpp.