Limit size of TransactionMessage
by data size instead of tx count
#4917
Labels
TransactionMessage
by data size instead of tx count
#4917
EIP-4844 introduces a new transaction type for blob transactions. These blob transactions are large. Right now we are limiting our
TransactionMessage
to 256 txs (https://github.com/NethermindEth/nethermind/blob/master/src/Nethermind/Nethermind.Network/P2P/ProtocolHandlers/SyncPeerProtocolHandlerBase.cs#L200) which can be too much after EIP-4844.We already introduced storing of tx sizes (#4866) so now we can limit message size by data size instead of tx count - in the same way as Geth do it:
https://github.com/ethereum/go-ethereum/blob/master/eth/protocols/eth/broadcast.go#L29
https://github.com/ethereum/go-ethereum/blob/master/eth/protocols/eth/broadcast.go#L82-L86
The text was updated successfully, but these errors were encountered: