Skip to content

Commit

Permalink
[zPIV][Consensus] fix 'Zerocoin_Block_Public_Spend_Enabled()' enforce…
Browse files Browse the repository at this point in the history
…ment
  • Loading branch information
random-zebra committed Jun 5, 2019
1 parent 3555f43 commit dcc74f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -967,7 +967,7 @@ bool CheckZerocoinMint(const uint256& txHash, const CTxOut& txout, CValidationSt

bool ContextualCheckZerocoinMint(const CTransaction& tx, const PublicCoin& coin, const CBlockIndex* pindex)
{
if (pindex->nHeight > Params().Zerocoin_Block_EndFakeSerial() && Params().NetworkID() != CBaseChainParams::TESTNET) {
if (pindex->nHeight >= Params().Zerocoin_Block_Public_Spend_Enabled()) {
// Zerocoin MINTs have been disabled
return error("%s: Mints disabled at height %d - unable to add pubcoin %s", __func__,
pindex->nHeight, coin.getValue().GetHex().substr(0, 10));
Expand Down

0 comments on commit dcc74f8

Please sign in to comment.