bool canCommit(int prepares, int commits) { return prepares >= prepareThreshold() && commits >= commitThreshold(); }