diff options
author | Anthony Towns <aj@erisian.com.au> | 2020-11-17 22:56:21 +1000 |
---|---|---|
committer | Anthony Towns <aj@erisian.com.au> | 2020-11-18 02:29:33 +1000 |
commit | 9d09132be4ff99f98ca905c342347d5f35f13350 (patch) | |
tree | 5ee6459c9e4dfe9a3bd817d94171bf0a49ad23de /src/net.h | |
parent | e7986c51bc7afeca8f79f286fb5d950f469a8866 (diff) | |
download | bitcoin-9d09132be4ff99f98ca905c342347d5f35f13350.tar.xz |
CConnman: initialise at declaration rather than in Start()
Ensure nMaxOutboundTotalBytesSentInCycle and nMaxOutboundCycleStartTime
are initialized even if CConnman::Start() is not called.
Diffstat (limited to 'src/net.h')
-rw-r--r-- | src/net.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -478,8 +478,8 @@ private: uint64_t nTotalBytesSent GUARDED_BY(cs_totalBytesSent) {0}; // outbound limit & stats - uint64_t nMaxOutboundTotalBytesSentInCycle GUARDED_BY(cs_totalBytesSent); - uint64_t nMaxOutboundCycleStartTime GUARDED_BY(cs_totalBytesSent); + uint64_t nMaxOutboundTotalBytesSentInCycle GUARDED_BY(cs_totalBytesSent) {0}; + uint64_t nMaxOutboundCycleStartTime GUARDED_BY(cs_totalBytesSent) {0}; uint64_t nMaxOutboundLimit GUARDED_BY(cs_totalBytesSent); uint64_t nMaxOutboundTimeframe GUARDED_BY(cs_totalBytesSent); |