diff options
author | Jonas Schnelli <jonas.schnelli@include7.ch> | 2015-06-26 21:38:33 +0200 |
---|---|---|
committer | Jonas Schnelli <jonas.schnelli@include7.ch> | 2015-07-02 20:29:36 +0200 |
commit | 409bccfbf52b531b2a9d60ac2308f56223931a2e (patch) | |
tree | fb1f19b73ccad0f597fcd1dc3dc240843a728ccd /src/main.cpp | |
parent | dfa174c2957f2600f05bf0ee9dd17fe18fb54fd7 (diff) |
use CBanEntry as object container for banned nodes
- added a reason enum for a ban
- added creation time for a ban
Using CBanEntry as container will keep banlist.dat extenable.
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index 6c4cfe75aa..a000a81fd9 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -4959,7 +4959,7 @@ bool SendMessages(CNode* pto, bool fSendTrickle) LogPrintf("Warning: not banning local peer %s!\n", pto->addr.ToString()); else { - CNode::Ban(pto->addr); + CNode::Ban(pto->addr, BanReasonNodeMisbehaving); } } state.fShouldBan = false; |