Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TxPool: handling blob txs reorgs #5954

Closed
wants to merge 155 commits into from

Conversation

marcindsobczak
Copy link
Contributor

@marcindsobczak marcindsobczak commented Jul 21, 2023

Changes

  • add to TxPoolConfig option of enabling support for blob txs reorgs BlobReorgsSupportEnabled, true by default
  • add new db dedicated for processed blob transactions
  • after inclusion of blob tx, it is removed from standard mempool/db. All txs from processed block are added to processed txs db where blockNumber is a key and value is array of txs
  • in case of reorg, if we have in db txs from reorged block, they are readded to standard mempool/db and removed from processed db
  • add ProcessedTransactionsDbCleaner which is triggered by ForkChoiceUpdated and is removing all KeyValuePairs with blockNumber not higher than finalized block, as reorg is not possible after finalization
  • update TxPool report to include db writes/reads

Types of changes

What types of changes does your code introduce?

  • Bugfix (a non-breaking change that fixes an issue)
  • New feature (a non-breaking change that adds functionality)
  • Breaking change (a change that causes existing functionality not to work as expected)
  • Optimization
  • Refactoring
  • Documentation update
  • Build-related changes
  • Other: Description

Testing

Requires testing

  • Yes
  • No

If yes, did you write tests?

  • Yes
  • No

Documentation

Requires documentation update

  • Yes
  • No

Requires explanation in Release Notes

  • Yes
  • No

marcindsobczak and others added 25 commits September 11, 2023 12:44
…ture/txpool_4844txs_reorgs

# Conflicts:
#	src/Nethermind/Nethermind.Consensus.AuRa/InitializationSteps/InitializeBlockchainAuRa.cs
#	src/Nethermind/Nethermind.Db/StandardDbInitializer.cs
#	src/Nethermind/Nethermind.Init/Steps/InitializeBlockchain.cs
#	src/Nethermind/Nethermind.Network.Benchmark/Eth62ProtocolHandlerBenchmarks.cs
#	src/Nethermind/Nethermind.TxPool/BlobTxStorage.cs
#	src/Nethermind/Nethermind.TxPool/ITxPoolConfig.cs
#	src/Nethermind/Nethermind.TxPool/TxPoolConfig.cs
…ture/txpool_4844txs_reorgs

# Conflicts:
#	src/Nethermind/Nethermind.Init/Steps/InitDatabase.cs
Base automatically changed from feature/txpool_4844txs to master October 17, 2023 13:01
@marcindsobczak marcindsobczak mentioned this pull request Nov 7, 2023
16 tasks
@marcindsobczak
Copy link
Contributor Author

Closed in favor of #6254

@rubo rubo deleted the feature/txpool_4844txs_reorgs branch December 20, 2023 21:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants