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

Perf base v2 #7

Merged
merged 6 commits into from
Dec 12, 2024
Merged

Perf base v2 #7

merged 6 commits into from
Dec 12, 2024

Conversation

andyzhang2023
Copy link
Owner

Description

  1. downgrade log level from Info to Debug in eth_sendRawTransaction API.
  2. optimization of truncatePending and truncateQueue
  3. optimization of pendingCache disable when the node does not enable --mine.
  4. split metrics of txpool by cases of 'reset' and 'reorg'.
  5. add logs to trace the reset events of txpool.

core/txpool/legacypool/legacypool.go Outdated Show resolved Hide resolved
core/txpool/legacypool/nonecache_for_miner.go Show resolved Hide resolved
core/blockchain.go Show resolved Hide resolved
core/txpool/legacypool/legacypool.go Show resolved Hide resolved
@andyzhang2023 andyzhang2023 merged commit e871e53 into perf-stable-s2 Dec 12, 2024
1 check failed
andyzhang2023 pushed a commit that referenced this pull request Jan 10, 2025
* fix several UT with racing issues

* fix incorrect nonce balance codehash issue

case: TestEIP1559 / TestDeleteThenCreate

* Fix ExecutionSpec tests

mainly root caused by balance not updated to dirty correctly.
also fix similar issue with nonce and codehash.

* fix TestBlockChain testcase issue

    TestBlockchain/ValidBlocks/bcStateTests/refundReset.json

* fix concurrent racing issue of state.accounts.

fix incorrect use of s.accountStorageParallelLock, it is designed
to be used for dirty/pending/original storages, not the accounts and
storages.

Use statedb.AccountMux and statedb.StorageMux for accounts/storages
lock.

* fix issue of DAOTransactions

handle the issue of updateObject of mainDB object touched by DAO transaction.

---------

Co-authored-by: Sunny <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants