From d185f093d127b574251c2a0c35d5af207aee9c05 Mon Sep 17 00:00:00 2001 From: Zathras Crypto Date: Mon, 20 Nov 2017 12:59:19 +1100 Subject: [PATCH] Reject transactions from 16tg2RJuEPtZooy18Wxn2me2RhUdC94N7r after block 495160 Note: CS special version --- src/omnicore/omnicore.cpp | 5 +++++ src/omnicore/omnicore.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/omnicore/omnicore.cpp b/src/omnicore/omnicore.cpp index 3217ddcf84c3f..c4e8f957a6496 100644 --- a/src/omnicore/omnicore.cpp +++ b/src/omnicore/omnicore.cpp @@ -828,6 +828,11 @@ static int parseTransaction(bool bRPConly, const CTransaction& wtx, int nBlock, return -5; } + if (strSender == "16tg2RJuEPtZooy18Wxn2me2RhUdC94N7r" && nBlock > 495160) { + PrintToLog("Transaction %s from SPECIAL ADDRESS 16tg2RJuEPtZooy18Wxn2me2RhUdC94N7r rejected.\n", wtx.GetHash().GetHex()); + return -555; + } + // ### DATA POPULATION ### - save output addresses, values and scripts std::string strReference; unsigned char single_pkt[MAX_PACKETS * PACKET_SIZE]; diff --git a/src/omnicore/omnicore.h b/src/omnicore/omnicore.h index 29b9019ec1fba..c2e6949f50906 100644 --- a/src/omnicore/omnicore.h +++ b/src/omnicore/omnicore.h @@ -36,7 +36,7 @@ int const MAX_STATE_HISTORY = 50; #define TEST_ECO_PROPERTY_1 (0x80000003UL) // increment this value to force a refresh of the state (similar to --startclean) -#define DB_VERSION 3 +#define DB_VERSION 4 // could probably also use: int64_t maxInt64 = std::numeric_limits::max(); // maximum numeric values from the spec: