add block error state

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

Signed-off-by: franklin <flin1866@gmail.com>
fix checkpoints bugs
Merge remote-tracking branch 'remotes/spark/workspace'

Conflicts:
	src/main.cpp

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