From c58d07dd2de0e3e4fb54a796286463f3f3484014 Mon Sep 17 00:00:00 2001 From: Andrey Date: Wed, 24 Apr 2019 23:01:27 +0400 Subject: [PATCH] Hotfix for the inability to add tx to mempool --- README.md | 2 +- configure.ac | 2 +- src/zerocoin.cpp | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 01c7aec6c3..bccfe611dd 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/configure.ac b/configure.ac index 594e69d1fa..f6f2ecfbc7 100644 --- a/configure.ac +++ b/configure.ac @@ -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]) diff --git a/src/zerocoin.cpp b/src/zerocoin.cpp index 9affa1be57..6d48601c46 100644 --- a/src/zerocoin.cpp +++ b/src/zerocoin.cpp @@ -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")); // Check Mint Zerocoin Transaction BOOST_FOREACH(const CTxOut &txout, tx.vout) {