aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2017-03-09 20:29:41 +0100
committerWladimir J. van der Laan <laanwj@gmail.com>2017-03-09 20:48:56 +0100
commit9cea1698132ab68b0d6b204ff5c8d154d9192b19 (patch)
tree6a9293aa927290b23f45c970a316e3d6eb5a525c
parent4e1134bdf1acff669c0f489934ac5f919c634d69 (diff)
downloadbitcoin-0.10.5.tar.xz
net: Disable P2P alert systemv0.10.5
-rw-r--r--src/main.cpp28
1 files changed, 2 insertions, 26 deletions
diff --git a/src/main.cpp b/src/main.cpp
index dd438f42c7..2c44f07c7c 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -4278,32 +4278,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())
- {
- // 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
}