feat(share/p2p/peer-manager): use LRU cache for peer-manager blacklisted hashes #1926
Labels
area:p2p
area:shares
Shares and samples
enhancement
New feature or request
good first issue
Good for newcomers
Implementation ideas
When
peer-manager
identifies datahash as invalid, it blacklists it to reject all futureshrex.Sub
messages with the same hash. Blacklisted hashes are stored in map and never deleted during runtime of node, which means that it could grow in size beyond reasonable limits.Need to rework blacklisted hashes storage in
peer-manager
to use LRU cache with limited size instead plain map.The text was updated successfully, but these errors were encountered: