restartmining at init.cpp