upgrade the dir of error log
if block==null chainHeight=0