message: [zPIV] Public coin, a super for-each removed. (doing nothing..)
diff: @@ -22,7 +22,7 @@ namespace libzerocoin {
  //PublicCoin class
  PublicCoin::PublicCoin(const ZerocoinParams* p):
  params(p) {
  - if (this->params->initialized == false) {
  + if (!this->params->initialized) {
  throw std::runtime_error("Params are not initialized");
  }
  // Assume this will get set by another method later
  @@ -30,18 +30,11 @@ PublicCoin::PublicCoin(const ZerocoinParams* p):
  };
  PublicCoin::PublicCoin(const ZerocoinParams* p, const CBigNum& coin, const CoinDenomination d):
  - params(p), value(coin) {
  - if (this->params->initialized == false) {
  + params(p), value(coin), denomination(d) {
  + if (!this->params->initialized) {
  throw std::runtime_error("Params are not initialized");
  }
  -
  - denomination = d;
  - for(const CoinDenomination denom : zerocoinDenomList) {
  - if(denom == d)
  - denomination = d;
  - }
  if (denomination == 0) {
  - std::cout << "denom does not exist\n";
  throw std::runtime_error("Denomination does not exist");
  }
  };
  @@ -68,7 +61,7 @@ bool PublicCoin::validate() const
  //PrivateCoin class
  PrivateCoin::PrivateCoin(const ZerocoinParams* p, const CoinDenomination denomination, bool fMintNew): params(p), publicCoin(p) {
  // Verify that the parameters are valid
  - if(this->params->initialized == false) {
  + if(!this->params->initialized) {
  throw std::runtime_error("Params are not initialized");
  }
  