diff options
author | Matt Corallo <git@bluematt.me> | 2017-08-03 15:52:37 -0400 |
---|---|---|
committer | Matt Corallo <git@bluematt.me> | 2017-08-06 11:48:19 -0400 |
commit | 1de73f4e19fe789abb636afdb48a165a6fd31009 (patch) | |
tree | 783591f399e4ca5a1deef7e98f0b8560a5c153c3 | |
parent | e222618a32a16cf0efae392e6349c10c38e57db6 (diff) |
Disconnect network service bits 6 and 8 until Aug 1, 2018
These have been used to indicate incompatible consensus rules
instead of changing network magic, so we're stuck disconnecting them.
-rw-r--r-- | src/net_processing.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/net_processing.cpp b/src/net_processing.cpp index a743f04dd1..6fabfcf0ad 100644 --- a/src/net_processing.cpp +++ b/src/net_processing.cpp @@ -1260,6 +1260,17 @@ bool static ProcessMessage(CNode* pfrom, const std::string& strCommand, CDataStr return false; } + if (nServices & ((1 << 7) | (1 << 5))) { + if (GetTime() < 1533096000) { + // Immediately disconnect peers that use service bits 6 or 8 until August 1st, 2018 + // These bits have been used as a flag to indicate that a node is running incompatible + // consensus rules instead of changing the network magic, so we're stuck disconnecting + // based on these service bits, at least for a while. + pfrom->fDisconnect = true; + return false; + } + } + if (nVersion < MIN_PEER_PROTO_VERSION) { // disconnect from peers older than this proto version |