diff options
author | Jon Atack <jon@atack.com> | 2020-12-29 00:53:57 +0100 |
---|---|---|
committer | Jon Atack <jon@atack.com> | 2020-12-29 00:53:57 +0100 |
commit | 8f9ca31782372fb60377ef319fefd727bb8c5d75 (patch) | |
tree | 715a5d8a7dfe8a06f0fdf1b35c5b15d2780637bd /src | |
parent | d875bcc8f9ace495845df945018c2bc9db5bbafc (diff) | |
download | bitcoin-8f9ca31782372fb60377ef319fefd727bb8c5d75.tar.xz |
p2p: remove unused legacyWhitelisted variable
Diffstat (limited to 'src')
-rw-r--r-- | src/net.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/net.cpp b/src/net.cpp index 1e24b0e2da..106f39568a 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -1038,14 +1038,12 @@ void CConnman::AcceptConnection(const ListenSocket& hListenSocket) { NetPermissionFlags permissionFlags = NetPermissionFlags::PF_NONE; hListenSocket.AddSocketPermissionFlags(permissionFlags); AddWhitelistPermissionFlags(permissionFlags, addr); - bool legacyWhitelisted = false; if (NetPermissions::HasFlag(permissionFlags, NetPermissionFlags::PF_ISIMPLICIT)) { NetPermissions::ClearFlag(permissionFlags, PF_ISIMPLICIT); if (gArgs.GetBoolArg("-whitelistforcerelay", DEFAULT_WHITELISTFORCERELAY)) NetPermissions::AddFlag(permissionFlags, PF_FORCERELAY); if (gArgs.GetBoolArg("-whitelistrelay", DEFAULT_WHITELISTRELAY)) NetPermissions::AddFlag(permissionFlags, PF_RELAY); NetPermissions::AddFlag(permissionFlags, PF_MEMPOOL); NetPermissions::AddFlag(permissionFlags, PF_NOBAN); - legacyWhitelisted = true; } { |