Drain the transaction overlay#11654
Conversation
ordian
left a comment
There was a problem hiding this comment.
Nice catch! Sorry I totally missed that in https://github.com/openethereum/openethereum/pull/11589#discussion_r408067341. Submitting an empty transaction to drain the transaction_overlay does def sound hacky, create an issue for it?
It's pretty odd indeed. Is there no other way to do it? |
so maybe |
|
based on the execution of this PR synchronizing mainnet, I can see that the memory leak is gone |
When restoring a chunk during warp sync, drain the transaction overlay.
Fixes memory blowup seen after https://github.com/openethereum/openethereum/pull/11589 landed.
There's a discussion to be had about the semantics of the implementations of
inject()and its docs. It can have significant side-effects beyond injecting independent extra database ops into a batch of writes.