merge franklin's code than commit it

Signed-off-by: spark.huang <240401736@qq.com>
rang.shi made some fix

Signed-off-by: spark.huang <240401736@qq.com>
remote a small bug

Signed-off-by: spark.huang <240401736@qq.com>
fix a miner bug at 21 blocks

Signed-off-by: ranger.shi <ranger.shi@gmail.com>
Merge branch 'workspace' of github.com:rangershi/DSValue into workspace