Require startingheight >= 230000

This commit is contained in:
Pieter Wuille 2013-04-14 19:25:10 +02:00
parent 0270a013fb
commit e4330f9be4
1 changed files with 6 additions and 2 deletions

View File

@ -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();