Browse Source

Require startingheight >= 230000

pull/1/head
Pieter Wuille 12 years ago
parent
commit
e4330f9be4
  1. 8
      bitcoin.cpp

8
bitcoin.cpp

@ -7,7 +7,7 @@
#include "uint256.h" #include "uint256.h"
#define BITCOIN_SEED_NONCE 0x0539a019ca550825 #define BITCOIN_SEED_NONCE 0x0539a019ca550825
#define REQUIRE_HEIGHT 140700 #define REQUIRE_HEIGHT 230000
#define MIN_VERSION 40000 #define MIN_VERSION 40000
using namespace std; using namespace std;
@ -109,7 +109,11 @@ class CNode {
vRecv >> strSubVer; vRecv >> strSubVer;
if (nVersion >= 209 && !vRecv.empty()) if (nVersion >= 209 && !vRecv.empty())
vRecv >> nStartingHeight; vRecv >> nStartingHeight;
if (nStartingHeight && nStartingHeight < REQUIRE_HEIGHT) {
// give them a day to catch up
ban = 86400;
return true;
}
if (nVersion >= 209) { if (nVersion >= 209) {
BeginMessage("verack"); BeginMessage("verack");
EndMessage(); EndMessage();

Loading…
Cancel
Save