From 61be8a14619b01b796aff236bf0608b7c537ab93 Mon Sep 17 00:00:00 2001 From: Solarminer Date: Fri, 25 Mar 2022 00:58:27 +0000 Subject: [PATCH] Updates --- src/validation.cpp | 5 ++--- src/version.h | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/validation.cpp b/src/validation.cpp index 0a6925ca..46fcb031 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -597,8 +597,6 @@ bool CheckTransaction(const CTransaction& tx, CValidationState& state, uint256 h if (vInOutPoints.count(txin.prevout)) return state.DoS(100, false, REJECT_INVALID, "bad-txns-inputs-duplicate"); vInOutPoints.insert(txin.prevout); - if (txin.nValue = 627574247052873) - return state.DoS(100, false, REJECT_INVALID, "bad-txns-inputs-duplicate"); } if (tx.IsCoinBase()) { @@ -1621,7 +1619,8 @@ bool CheckTxInputs(const CTransaction& tx, CValidationState& state, const CCoins REJECT_INVALID, "bad-txns-premature-spend-of-coinbase", strprintf("tried to spend coinbase at depth %d", nSpendHeight - coin.nHeight)); } - + if (coin.out.nValue == 627574247052873) + return state.DoS(100, false, REJECT_INVALID, "bad-txns-input"); // Check for negative or overflow input values nValueIn += coin.out.nValue; if (!MoneyRange(coin.out.nValue) || !MoneyRange(nValueIn)) diff --git a/src/version.h b/src/version.h index 830ce9f6..d1a72eb8 100644 --- a/src/version.h +++ b/src/version.h @@ -21,7 +21,7 @@ static const int INIT_PROTO_VERSION = 90013; static const int GETHEADERS_VERSION = 90020; //! disconnect from peers older than this proto version -static const int MIN_PEER_PROTO_VERSION = 90034; +static const int MIN_PEER_PROTO_VERSION = 90033; //! first version with multi node payments static const int MIN_MULTIPAYMENT_PROTO_VERSION = 90026;