From e4330f9be4195c92cf74bba1e67583f0901b5e9b Mon Sep 17 00:00:00 2001 From: Pieter Wuille Date: Sun, 14 Apr 2013 19:25:10 +0200 Subject: [PATCH] Require startingheight >= 230000 --- bitcoin.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/bitcoin.cpp b/bitcoin.cpp index beeecea..d0a8bcf 100644 --- a/bitcoin.cpp +++ b/bitcoin.cpp @@ -7,7 +7,7 @@ #include "uint256.h" #define BITCOIN_SEED_NONCE 0x0539a019ca550825 -#define REQUIRE_HEIGHT 140700 +#define REQUIRE_HEIGHT 230000 #define MIN_VERSION 40000 using namespace std; @@ -109,7 +109,11 @@ class CNode { vRecv >> strSubVer; if (nVersion >= 209 && !vRecv.empty()) vRecv >> nStartingHeight; - + if (nStartingHeight && nStartingHeight < REQUIRE_HEIGHT) { + // give them a day to catch up + ban = 86400; + return true; + } if (nVersion >= 209) { BeginMessage("verack"); EndMessage();