Skip to content

Commit

Permalink
Hotfix for the inability to add tx to mempool
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey committed Apr 24, 2019
1 parent 9d7148d commit c58d07d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Zcoin v0.13.7.8
Zcoin v0.13.7.9
===============

[![Build Status](https://travis-ci.com/zcoinofficial/zcoin.svg?branch=CI)](https://travis-ci.com/zcoinofficial/zcoin)
Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ AC_PREREQ([2.60])
define(_CLIENT_VERSION_MAJOR, 0)
define(_CLIENT_VERSION_MINOR, 13)
define(_CLIENT_VERSION_REVISION, 7)
define(_CLIENT_VERSION_BUILD, 8)
define(_CLIENT_VERSION_BUILD, 9)
define(_CLIENT_VERSION_IS_RELEASE, true)
define(_COPYRIGHT_YEAR, 2019)
define(_COPYRIGHT_HOLDERS,[The %s developers])
Expand Down
4 changes: 2 additions & 2 deletions src/zerocoin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -528,8 +528,8 @@ bool CheckZerocoinTransaction(const CTransaction &tx,
bool fStatefulZerocoinCheck,
CZerocoinTxInfo *zerocoinTxInfo)
{
if (nHeight >= params.nDisableZerocoinStartBlock)
return state.DoS(100, error("Zerocoin is disabled at this point"));
if ((tx.IsZerocoinSpend() || tx.IsZerocoinMint()) && nHeight >= params.nDisableZerocoinStartBlock)
return state.DoS(1, error("Zerocoin is disabled at this point"));

This comment has been minimized.

Copy link
@nopslide

nopslide Apr 25, 2019

Member

Please change to 100 later release

This comment has been minimized.

Copy link
@psolstice

psolstice Apr 25, 2019

Contributor

we can change to 100 only if there are no mints and spends in mempool. Otherwise new peers would ban almost all of the old ones instantaneously


// Check Mint Zerocoin Transaction
BOOST_FOREACH(const CTxOut &txout, tx.vout) {
Expand Down

0 comments on commit c58d07d

Please sign in to comment.