aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2013-04-07 19:31:13 +0200
committerPieter Wuille <pieter.wuille@gmail.com>2013-04-07 19:31:13 +0200
commit86648a8d16699ab392508a48bb867d3fc4f7d6cf (patch)
tree8791097b76870c494c545a036368c5673ae48efe /src/net.h
parent6ed71b5e4faa2ea6d739eefa9c3dcc15db80439c (diff)
downloadbitcoin-86648a8d16699ab392508a48bb867d3fc4f7d6cf.tar.xz
Add bytessent, bytesrecv and syncnode to getpeerinfo
Diffstat (limited to 'src/net.h')
-rw-r--r--src/net.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/net.h b/src/net.h
index 2a8b7f09ee..719ef119bf 100644
--- a/src/net.h
+++ b/src/net.h
@@ -102,6 +102,9 @@ public:
int64 nReleaseTime;
int nStartingHeight;
int nMisbehavior;
+ uint64 nSendBytes;
+ uint64 nRecvBytes;
+ bool fSyncNode;
};
@@ -156,12 +159,14 @@ public:
CDataStream ssSend;
size_t nSendSize; // total size of all vSendMsg entries
size_t nSendOffset; // offset inside the first vSendMsg already sent
+ uint64 nSendBytes;
std::deque<CSerializeData> vSendMsg;
CCriticalSection cs_vSend;
std::deque<CInv> vRecvGetData;
std::deque<CNetMessage> vRecvMsg;
CCriticalSection cs_vRecvMsg;
+ uint64 nRecvBytes;
int nRecvVersion;
int64 nLastSend;
@@ -223,6 +228,8 @@ public:
nRecvVersion = MIN_PROTO_VERSION;
nLastSend = 0;
nLastRecv = 0;
+ nSendBytes = 0;
+ nRecvBytes = 0;
nLastSendEmpty = GetTime();
nTimeConnected = GetTime();
addr = addrIn;