add CheckActiveChain at AppInit2()

Signed-off-by: franklin <flin1866@gmail.com>
modify nTargetSpacing

Signed-off-by: franklin <flin1866@gmail.com>