diff options
| author | Jonas Schnelli <[email protected]> | 2015-06-26 21:38:33 +0200 |
|---|---|---|
| committer | Jonas Schnelli <[email protected]> | 2015-07-02 20:29:36 +0200 |
| commit | 409bccfbf52b531b2a9d60ac2308f56223931a2e (patch) | |
| tree | fb1f19b73ccad0f597fcd1dc3dc240843a728ccd /src/main.cpp | |
| parent | CAddrDB/CBanDB: change filesize variables from int to uint64_t (diff) | |
| download | discoin-409bccfbf52b531b2a9d60ac2308f56223931a2e.tar.xz discoin-409bccfbf52b531b2a9d60ac2308f56223931a2e.zip | |
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 6c4cfe75a..a000a81fd 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; |