Introduce enum ServiceFlags for service flags

This commit is contained in:
Pieter Wuille
2016-06-08 19:12:22 +02:00
parent 15bf863219
commit ee06e04369
11 changed files with 89 additions and 83 deletions

View File

@@ -152,7 +152,7 @@ CAddress GetLocalAddress(const CNetAddr *paddrPeer = NULL);
extern bool fDiscover;
extern bool fListen;
extern uint64_t nLocalServices;
extern ServiceFlags nLocalServices;
extern bool fRelayTxes;
extern uint64_t nLocalHostNonce;
extern CAddrMan addrman;
@@ -186,7 +186,7 @@ class CNodeStats
{
public:
NodeId nodeid;
uint64_t nServices;
ServiceFlags nServices;
bool fRelayTxes;
int64_t nLastSend;
int64_t nLastRecv;
@@ -316,8 +316,8 @@ class CNode
{
public:
// socket
uint64_t nServices;
uint64_t nServicesExpected;
ServiceFlags nServices;
ServiceFlags nServicesExpected;
SOCKET hSocket;
CDataStream ssSend;
size_t nSendSize; // total size of all vSendMsg entries