OffchainLabs / bold

Efficient, all-vs-all dispute protocol for Optimistic Rollups
Other
115 stars 23 forks source link

Adjusts log levels for ErrExceedsMaxMempoolSize #692

Open diegoximenes opened 1 month ago

diegoximenes commented 1 month ago

Adjusts log levels for ErrExceedsMaxMempoolSize.

With this PR logs related to ErrExceedsMaxMempoolSize are initially logged as warnings, and only if they persist for a while that will be logged as errors.

Similarly to what was done with StopWaiter, EphemeralErrorHandler was copied from https://github.com/OffchainLabs/nitro.

Resolves NIT-2785

codecov[bot] commented 1 month ago

Codecov Report

Attention: Patch coverage is 32.50000% with 54 lines in your changes missing coverage. Please review.

Project coverage is 59.67%. Comparing base (162553c) to head (c822d29). Report is 1 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #692 +/- ## ========================================== - Coverage 59.68% 59.67% -0.02% ========================================== Files 51 53 +2 Lines 9057 9264 +207 ========================================== + Hits 5406 5528 +122 - Misses 3645 3730 +85 Partials 6 6 ```