You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor getKnownBlockWithBackoff from recursion to loop (#934)
* Fix OOM crash in getKnownBlockWithBackoff by using iterative loop (#926)
The recursive async function was causing stack frame accumulation
when the RPC endpoint was unresponsive, leading to OOM crashes.
Converting to an iterative while loop prevents stack buildup.
https://claude.ai/code/session_01UkjKaX6cKJA568ixy6Kfi4
* Add Prometheus metric for RPC requests in getKnownBlockWithBackoff
Move the SourceRequestCount increment into getKnownBlockWithBackoff
so each RPC call attempt (including retries) is properly tracked.
https://claude.ai/code/session_01UkjKaX6cKJA568ixy6Kfi4
---------
Co-authored-by: Claude <noreply@anthropic.com>
0 commit comments