diff options
| author | Matt Corallo <[email protected]> | 2016-11-29 17:51:30 -0800 |
|---|---|---|
| committer | Matt Corallo <[email protected]> | 2016-12-23 21:30:16 -0500 |
| commit | 0cf86a6678413aa03e765a7133f048df4001ff4c (patch) | |
| tree | 10846a31ea17a64d66a77f15acc182aeeea43861 /src/net_processing.cpp | |
| parent | Fix non-const mapMultiArgs[] access after init. (diff) | |
| download | discoin-0cf86a6678413aa03e765a7133f048df4001ff4c.tar.xz discoin-0cf86a6678413aa03e765a7133f048df4001ff4c.zip | |
Introduce (and use) an IsArgSet accessor method
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 87d367c2f..98872200d 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 (mapArgs.count("-dropmessagestest") && GetRand(atoi(mapArgs["-dropmessagestest"])) == 0) + if (IsArgSet("-dropmessagestest") && GetRand(atoi(mapArgs["-dropmessagestest"])) == 0) { LogPrintf("dropmessagestest DROPPING RECV MESSAGE\n"); return true; |