diff options
author | Matt Corallo <git@bluematt.me> | 2016-11-29 18:45:24 -0800 |
---|---|---|
committer | Matt Corallo <git@bluematt.me> | 2016-12-24 11:29:33 -0500 |
commit | 4cd373aea8d20356727f7d65e0bc818beb6523dc (patch) | |
tree | 945990959f03be82089270427a7595431459942b /src/net_processing.cpp | |
parent | 71fde5563b5d05a63e3ad08a3c32a9e5ffb952f7 (diff) | |
download | bitcoin-4cd373aea8d20356727f7d65e0bc818beb6523dc.tar.xz |
Un-expose mapArgs from utils.h
Diffstat (limited to 'src/net_processing.cpp')
-rw-r--r-- | src/net_processing.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net_processing.cpp b/src/net_processing.cpp index 98872200dd..6282849ed1 100644 --- a/src/net_processing.cpp +++ b/src/net_processing.cpp @@ -1060,7 +1060,7 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv, unsigned int nMaxSendBufferSize = connman.GetSendBufferSize(); LogPrint("net", "received: %s (%u bytes) peer=%d\n", SanitizeString(strCommand), vRecv.size(), pfrom->id); - if (IsArgSet("-dropmessagestest") && GetRand(atoi(mapArgs["-dropmessagestest"])) == 0) + if (IsArgSet("-dropmessagestest") && GetRand(GetArg("-dropmessagestest", 0)) == 0) { LogPrintf("dropmessagestest DROPPING RECV MESSAGE\n"); return true; |