git://git.novaco.in
/
novacoin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
59a5940
)
Disconnect buggy clients automatically.
author
Alex
<balthazar.ad@gmail.com>
Mon, 27 Jan 2014 01:36:28 +0000 (
05:36
+0400)
committer
Alex
<balthazar.ad@gmail.com>
Mon, 27 Jan 2014 01:36:28 +0000 (
05:36
+0400)
src/main.cpp
patch
|
blob
|
history
diff --git
a/src/main.cpp
b/src/main.cpp
index
ccfd0aa
..
1abc1d3
100644
(file)
--- a/
src/main.cpp
+++ b/
src/main.cpp
@@
-3343,6
+3343,13
@@
bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv)
return true;
}
+ if (pfrom->nVersion < 60010)
+ {
+ printf("partner %s using a buggy client %d, disconnecting\n", pfrom->addr.ToString().c_str(), pfrom->nVersion);
+ pfrom->fDisconnect = true;
+ return true;
+ }
+
// record my external IP reported by peer
if (addrFrom.IsRoutable() && addrMe.IsRoutable())
addrSeenByPeer = addrMe;