Prevent indefinite transactions_by_peers growth #6834
Labels
A-devp2p
Related to the Ethereum P2P protocol
A-networking
Related to networking in general
A-tx-pool
Related to the transaction mempool
C-bug
An unexpected or incorrect behavior
The
transactions_by_peers
data structure in theTransactionsManager
appears to grow unbounded:In this graph,
transactions by peers total count
is the sum of thevec
lengths, andtransactions by peers
is the number of keys in the map.See the following from a memory profile, the push operation accounts for almost a third of inuse space:
The line referred to in the memory profile is here:
reth/crates/net/network/src/transactions/mod.rs
Line 998 in 445e1ad
We need to come up with a way to prune or bound this data structure, after investigating why this does not shrink.
The text was updated successfully, but these errors were encountered: