aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authornicolas.dorier <nicolas.dorier@gmail.com>2019-06-21 11:42:04 +0900
committernicolas.dorier <nicolas.dorier@gmail.com>2019-08-11 11:33:28 +0900
commitd541fa391844f658bd7035659b5b16695733dd56 (patch)
tree655966a9b458e463187e6bd9abad30e5c43bbaba /src/net.h
parentecd5cf7ea4c3644a30092100ffc399e30e193275 (diff)
downloadbitcoin-d541fa391844f658bd7035659b5b16695733dd56.tar.xz
Replace the use of fWhitelisted by permission checks
Diffstat (limited to 'src/net.h')
-rw-r--r--src/net.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/net.h b/src/net.h
index 8e4521694e..75c05c9cb5 100644
--- a/src/net.h
+++ b/src/net.h
@@ -559,7 +559,7 @@ public:
uint64_t nRecvBytes;
mapMsgCmdSize mapRecvBytesPerMsgCmd;
NetPermissionFlags m_permissionFlags;
- bool fWhitelisted;
+ bool m_legacyWhitelisted;
double dPingTime;
double dPingWait;
double dMinPing;
@@ -664,7 +664,8 @@ public:
bool HasPermission(NetPermissionFlags permission) const {
return NetPermissions::HasFlag(m_permissionFlags, permission);
}
- bool fWhitelisted{false}; // This peer can bypass DoS banning.
+ // This boolean is unusued in actual processing, only present for backward compatibility at RPC/QT level
+ bool m_legacyWhitelisted{false};
bool fFeeler{false}; // If true this node is being used as a short lived feeler.
bool fOneShot{false};
bool m_manual_connection{false};