Skip to content

Commit

Permalink
[Cleanup] clang compiler warnings in coinSpend and publicCoinSpend fi…
Browse files Browse the repository at this point in the history
…xed.
  • Loading branch information
furszy committed Jun 9, 2019
1 parent d6149cc commit f912182
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/libzerocoin/CoinSpend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,15 @@
namespace libzerocoin
{
CoinSpend::CoinSpend(const ZerocoinParams* paramsCoin, const ZerocoinParams* paramsAcc, const PrivateCoin& coin, Accumulator& a, const uint32_t& checksum,
const AccumulatorWitness& witness, const uint256& ptxHash, const SpendType& spendType) : accChecksum(checksum),
ptxHash(ptxHash),
const AccumulatorWitness& witness, const uint256& ptxHash, const SpendType& spendType) :
coinSerialNumber((coin.getSerialNumber())),
spendType(spendType),
ptxHash(ptxHash),
accChecksum(checksum),
accumulatorPoK(&paramsAcc->accumulatorParams),
serialNumberSoK(paramsCoin),
commitmentPoK(&paramsCoin->serialNumberSoKCommitmentGroup,
&paramsAcc->accumulatorParams.accumulatorPoKCommitmentGroup),
spendType(spendType)
&paramsAcc->accumulatorParams.accumulatorPoKCommitmentGroup)
{
denomination = coin.getPublicCoin().getDenomination();
version = coin.getVersion();
Expand Down
3 changes: 3 additions & 0 deletions src/libzerocoin/CoinSpend.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ class CoinSpend
CoinSpend(const ZerocoinParams* paramsCoin, const ZerocoinParams* paramsAcc, const PrivateCoin& coin, Accumulator& a, const uint32_t& checksum,
const AccumulatorWitness& witness, const uint256& ptxHash, const SpendType& spendType);


virtual ~CoinSpend(){};

/** Returns the serial number of the coin spend by this proof.
*
* @return the coin's serial number
Expand Down
2 changes: 2 additions & 0 deletions src/zpiv/zpivmodule.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ class PublicCoinSpend : public libzerocoin::CoinSpend{
this->version = COIN_SPEND_PUBLIC_SPEND_VERSION;
};

~PublicCoinSpend(){};

template <typename Stream>
PublicCoinSpend(
libzerocoin::ZerocoinParams* params,
Expand Down

0 comments on commit f912182

Please sign in to comment.