Which of the following is the PRIMARY role of a consensus mechanism in a decentralized blockchain network?