Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Mitigate unbounded log growth and prevent duplicate log entries #90

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

evan57-liu
Copy link

  • Implemented filteredCache using sync.Map to avoid outputting duplicate sanctioned address logs.
  • Use chan to avoid I/O performance issues and potential file lock contention.

- Implemented `filteredCache` using `sync.Map` to avoid outputting duplicate sanctioned address logs.
- Use `chan` to avoid I/O performance issues and potential file lock contention.
@stevemilk
Copy link
Contributor

This one is alternative to https://github.com/piplabs/story-geth-private-fork/pull/18.
Won't be included in mainnet release.

I will review this one after deciding whether to keep the filter log file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants