public boolean checkEpochEqual(){
  int acceptedEpoch=readEpoch(new File(zkDir,ZK_ACCEPTED_EPOCH));
  int currentEpoch=readEpoch(new File(zkDir,ZK_CURRENT_EPOCH));
  return (acceptedEpoch == currentEpoch);
}

public boolean checkEpochEqual ( ) { int acceptedEpoch = readEpoch ( new File ( zkDir , ZK_ACCEPTED_EPOCH ) ) ; int currentEpoch = readEpoch ( new File ( zkDir , ZK_CURRENT_EPOCH ) ) ; return ( acceptedEpoch == currentEpoch ) ; }
make sure the accepted epoch is equal to current epoch
