-
Notifications
You must be signed in to change notification settings - Fork 858
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
Improve Conflict Detection in Parallelization by Considering Slots to Reduce False Positives #7923
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Karim Taam <karim.t2am@gmail.com>
Signed-off-by: Karim Taam <karim.t2am@gmail.com>
Signed-off-by: Karim Taam <karim.t2am@gmail.com>
we need to do stability tests before merging |
Signed-off-by: Karim Taam <karim.t2am@gmail.com>
...ava/org/hyperledger/besu/ethereum/mainnet/parallelization/MainnetParallelBlockProcessor.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Karim Taam <karim.t2am@gmail.com>
@@ -504,6 +504,8 @@ public void commit() { | |||
tracked.setStorageWasCleared(false); // storage already cleared for this transaction | |||
} | |||
}); | |||
getUpdatedAccounts().clear(); | |||
getDeletedAccounts().clear(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest to do this clearing in a separate PR as it is not related to parallelization
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes will remove it . moved to #7974
- copy storageKeyHashLookup when cloning accumulator Signed-off-by: Karim Taam <karim.t2am@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changelog entry?
...java/org/hyperledger/besu/ethereum/mainnet/parallelization/TransactionCollisionDetector.java
Outdated
Show resolved
Hide resolved
...java/org/hyperledger/besu/ethereum/mainnet/parallelization/TransactionCollisionDetector.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Karim Taam <karim.t2am@gmail.com>
68a5c15
to
85bfd20
Compare
PR description
This update improve conflict detection during transaction parallelization by checking storage slot changes. By considering modified slots in addition to addresses, we improve the accuracy of conflict detection.
Key Changes:
Fixed Issue(s)
Thanks for sending a pull request! Have you done the following?
doc-change-required
label to this PR if updates are required.Locally, you can run these tests to catch failures early:
./gradlew build
./gradlew acceptanceTest
./gradlew integrationTest
./gradlew ethereum:referenceTests:referenceTests