Block chain consistency algorithm with state legality verification.pdf