diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2017-03-09 20:26:31 +0100 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2017-03-09 20:49:36 +0100 |
commit | 0bace8307995ac2911885c7c8b8dec19b864eaa3 (patch) | |
tree | 965205d601a353a50f8be9c4c7c944532079da2b | |
parent | 0cd4fb6570f67d40891673bc8c41e473b9753c63 (diff) |
net: Disable P2P alert systemv0.11.3
-rw-r--r-- | src/main.cpp | 28 |
1 files changed, 2 insertions, 26 deletions
diff --git a/src/main.cpp b/src/main.cpp index fe072ec6e1..de05a2a688 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -4724,32 +4724,8 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv, else if (fAlerts && strCommand == "alert") { - CAlert alert; - vRecv >> alert; - - uint256 alertHash = alert.GetHash(); - if (pfrom->setKnown.count(alertHash) == 0) - { - if (alert.ProcessAlert(Params().AlertKey())) - { - // Relay - pfrom->setKnown.insert(alertHash); - { - LOCK(cs_vNodes); - BOOST_FOREACH(CNode* pnode, vNodes) - alert.RelayTo(pnode); - } - } - else { - // Small DoS penalty so peers that send us lots of - // duplicate/expired/invalid-signature/whatever alerts - // eventually get banned. - // This isn't a Misbehaving(100) (immediate ban) because the - // peer might be an older or different implementation with - // a different signature key, etc. - Misbehaving(pfrom->GetId(), 10); - } - } + // Alert message handling disabled + // See https://bitcoin.org/en/alert/2016-11-01-alert-retirement } |