Skip to content

Commit

Permalink
[Consensus] Disable zerocoin minting in contextual check
Browse files Browse the repository at this point in the history
  • Loading branch information
random-zebra committed Jun 5, 2019
1 parent 9f3fa2a commit 2708b6f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -967,6 +967,11 @@ 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) {
// 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));
}
if (pindex->nHeight >= Params().Zerocoin_Block_V2_Start() && Params().NetworkID() != CBaseChainParams::TESTNET) {
//See if this coin has already been added to the blockchain
uint256 txid;
Expand Down

0 comments on commit 2708b6f

Please sign in to comment.