Finish untested initial implementation of the consensus protocol.