Skip to content

Commit

Permalink
Remove contextual check from CheckZerocoinMint
Browse files Browse the repository at this point in the history
  • Loading branch information
presstab committed Nov 13, 2017
1 parent 0393b1a commit 23b9c99
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1315,9 +1315,6 @@ std::list<libzerocoin::CoinDenomination> ZerocoinSpendListFromBlock(const CBlock

bool CheckZerocoinMint(const uint256& txHash, const CTxOut& txout, CValidationState& state, bool fCheckOnly)
{
if(!fCheckOnly && chainActive.Height() <= Params().Zerocoin_StartHeight())
return state.DoS(100, error("CheckZerocoinMint(): This block was generated before zPIV activated. Invalid"));

PublicCoin pubCoin(Params().Zerocoin_Params());
if(!TxOutToPublicCoin(txout, pubCoin, state))
return state.DoS(100, error("CheckZerocoinMint(): TxOutToPublicCoin() failed"));
Expand Down

0 comments on commit 23b9c99

Please sign in to comment.