diff options
author | nicolas.dorier <nicolas.dorier@gmail.com> | 2019-06-21 11:42:04 +0900 |
---|---|---|
committer | nicolas.dorier <nicolas.dorier@gmail.com> | 2019-08-11 11:33:28 +0900 |
commit | d541fa391844f658bd7035659b5b16695733dd56 (patch) | |
tree | 655966a9b458e463187e6bd9abad30e5c43bbaba /src/net.h | |
parent | ecd5cf7ea4c3644a30092100ffc399e30e193275 (diff) |
Replace the use of fWhitelisted by permission checks
Diffstat (limited to 'src/net.h')
-rw-r--r-- | src/net.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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}; |