A consensus mechanism must be cared for protecting blockchain against attacks