diff options
author | Sebastian Falbesoner <sebastian.falbesoner@gmail.com> | 2020-08-21 15:17:42 +0200 |
---|---|---|
committer | Sebastian Falbesoner <sebastian.falbesoner@gmail.com> | 2020-09-29 00:42:06 +0200 |
commit | 30bc8fab6833e0447ceadd3fff1566a680e33a98 (patch) | |
tree | 0b76b997f26531545afd1fa6bd006b8339d92775 /src/net.h | |
parent | 655937ebcbf681ededf86b1f0f60aac45c73393d (diff) | |
download | bitcoin-30bc8fab6833e0447ceadd3fff1566a680e33a98.tar.xz |
net: save high-bandwidth mode states in CNodeStats
Diffstat (limited to 'src/net.h')
-rw-r--r-- | src/net.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -681,6 +681,8 @@ public: std::string cleanSubVer; bool fInbound; bool m_manual_connection; + bool m_bip152_highbandwidth_to; + bool m_bip152_highbandwidth_from; int nStartingHeight; uint64_t nSendBytes; mapMsgCmdSize mapSendBytesPerMsgCmd; @@ -942,6 +944,10 @@ protected: public: uint256 hashContinue; std::atomic<int> nStartingHeight{-1}; + // We selected peer as (compact blocks) high-bandwidth peer (BIP152) + std::atomic<bool> m_bip152_highbandwidth_to{false}; + // Peer selected us as (compact blocks) high-bandwidth peer (BIP152) + std::atomic<bool> m_bip152_highbandwidth_from{false}; // flood relay std::vector<CAddress> vAddrToSend; |