The Byzantine Generals Problem And Its Relation to Consensus