MCPcopy Create free account
hub / github.com/ElementsProject/elements / HasPermission

Method HasPermission

src/net.h:471–473  ·  view source on GitHub ↗

This peer is preferred for eviction.

Source from the content-addressed store, hash-verified

469 std::string cleanSubVer GUARDED_BY(m_subver_mutex){};
470 bool m_prefer_evict{false}; // This peer is preferred for eviction.
471 bool HasPermission(NetPermissionFlags permission) const {
472 return NetPermissions::HasFlag(m_permissionFlags, permission);
473 }
474 bool fClient{false}; // set by version message
475 bool m_limited_node{false}; //after BIP159, set by version message
476 /** fSuccessfullyConnected is set to true on receiving VERACK from the peer. */

Callers 9

EXCLUSIVE_LOCKS_REQUIREDFunction · 0.80
AddTxAnnouncementMethod · 0.80
ProcessGetBlockDataMethod · 0.80
ProcessMessageMethod · 0.80
MaybeSendFeefilterMethod · 0.80
SendMessagesMethod · 0.80
FUZZ_TARGET_INITFunction · 0.80

Calls

no outgoing calls

Tested by 1

FUZZ_TARGET_INITFunction · 0.64