aboutsummaryrefslogtreecommitdiff
path: root/src/net_processing.cpp
diff options
context:
space:
mode:
authorCory Fields <[email protected]>2016-12-31 02:05:07 -0500
committerCory Fields <[email protected]>2017-01-04 09:29:14 -0500
commite5bcd9c84fd3107321ff6dbdef067ba03f2b43cb (patch)
treed13ceab3c2c02ea4a22ec8dc10c5f9d92be0808f /src/net_processing.cpp
parentnet: fix typo causing the wrong receive buffer size (diff)
downloaddiscoin-e5bcd9c84fd3107321ff6dbdef067ba03f2b43cb.tar.xz
discoin-e5bcd9c84fd3107321ff6dbdef067ba03f2b43cb.zip
net: make vRecvMsg a list so that we can use splice()
Diffstat (limited to 'src/net_processing.cpp')
-rw-r--r--src/net_processing.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net_processing.cpp b/src/net_processing.cpp
index ccfbb77fc..f53a4b263 100644
--- a/src/net_processing.cpp
+++ b/src/net_processing.cpp
@@ -2471,7 +2471,7 @@ bool ProcessMessages(CNode* pfrom, CConnman& connman, std::atomic<bool>& interru
// this maintains the order of responses
if (!pfrom->vRecvGetData.empty()) return fOk;
- std::deque<CNetMessage>::iterator it = pfrom->vRecvMsg.begin();
+ auto it = pfrom->vRecvMsg.begin();
while (!pfrom->fDisconnect && it != pfrom->vRecvMsg.end()) {
// Don't bother if send buffer is too full to respond anyway
if (pfrom->nSendSize >= nMaxSendBufferSize)