reth icon indicating copy to clipboard operation
reth copied to clipboard

Track body downloader memory size

Open mattsse opened this issue 2 years ago • 0 comments

Describe the feature

body stage is susceptible to OOM, because it's bound by number of blocks instead of max memory.

In order to restrict it by mem size, we need to track it: the simplest solution here is to keep track of all tx.data.len() in the buffer.

Additional context

No response

mattsse avatar May 25 '23 14:05 mattsse