MessageConsensus code