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
The OprhanWitnessPool, introduced in #10613, keeps a cache of orphaned witnesses which are waiting for some block to appear. The witnesses are removed from the cache once the desired block appears, but if the block never comes, then the witnesses stay in the pool. They are eventually ejected when the cache hits full capacity, but it means that for most of the time the cache will be full of useless witnesses, wasting memory.
As an optimization we could periodically remove witnesses which are no longer needed (e.g their height is less than the final height on the chain). This would reduce memory usage of the orphan witness pool.
Orphaned witnesses which are below the final height of the
chain will never be processed, so let's remove them from
the orphan pool to save memory.
Fixes: near#10649
Orphaned witnesses which are below the final height of the chain will
never be processed, so let's remove them from the orphan pool to free up
memory.
Fixes: #10649
The
OprhanWitnessPool
, introduced in #10613, keeps a cache of orphaned witnesses which are waiting for some block to appear. The witnesses are removed from the cache once the desired block appears, but if the block never comes, then the witnesses stay in the pool. They are eventually ejected when the cache hits full capacity, but it means that for most of the time the cache will be full of useless witnesses, wasting memory.As an optimization we could periodically remove witnesses which are no longer needed (e.g their height is less than the final height on the chain). This would reduce memory usage of the orphan witness pool.
Refs: #10613 (comment)
The text was updated successfully, but these errors were encountered: