ChainSafe / ChainSafe/gossamer

dot/network: limit memory usage of gossip seen map

Open
#2,443 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
454
Forks
144
PR merge metrics
No merged PRs in 30d

Description

## Task summary

The `seen` map in `dot/network/gossip.go` does not have a limit of size and no key is ever deleted.

It should be investigated:

1. If there is an event indicating the key can be deleted
2. If not, find a mechanism based on space+time to remove older elements

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.