Fix that not match prev-checksum and implement the consensus role