aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorSebastian Falbesoner <sebastian.falbesoner@gmail.com>2020-08-21 15:17:42 +0200
committerSebastian Falbesoner <sebastian.falbesoner@gmail.com>2020-09-29 00:42:06 +0200
commit30bc8fab6833e0447ceadd3fff1566a680e33a98 (patch)
tree0b76b997f26531545afd1fa6bd006b8339d92775 /src/net.h
parent655937ebcbf681ededf86b1f0f60aac45c73393d (diff)
downloadbitcoin-30bc8fab6833e0447ceadd3fff1566a680e33a98.tar.xz
net: save high-bandwidth mode states in CNodeStats
Diffstat (limited to 'src/net.h')
-rw-r--r--src/net.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/net.h b/src/net.h
index 5a8e57b68b..4605000092 100644
--- a/src/net.h
+++ b/src/net.h
@@ -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;