-
Notifications
You must be signed in to change notification settings - Fork 1.1k
[POC] heal the worldstate #4972
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
Closed
Closed
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
9d179f9
init heal worldstate implementation
matkt d3b6941
update implementation
matkt dead4f8
clean
matkt e5d62cc
Merge branch 'main' into feature/heal-worldstate
matkt 3103951
added logging changes
non-fungible-nelson 1311342
added logging changes
non-fungible-nelson 0d72427
fix heal issues
matkt e511dab
Merge commit 'main' into feature/heal-worldstate
matkt f76b4c5
fix build
matkt 21bf689
clean
matkt 20f76e2
clean
matkt 5cab1c2
added logging changes
non-fungible-nelson 1297c9a
Merge branch 'main' into feature/heal-worldstate
matkt 808643c
Merge branch main
matkt e2179d4
fixing some issues
matkt 1bdb63c
Merge branch 'main' into feature/heal-worldstate
matkt 8c4c437
add another path
matkt d4ec504
spotless
garyschulte 960a8bb
fix tests
matkt 744f772
Merge branch 'main' into feature/heal-worldstate
garyschulte 2b25930
fix backward sync for reorg
matkt bb2b0b2
fix metrics tests
matkt 5a0587d
Merge branch 'main' into feature/heal-worldstate
siladu 686a9cc
fix review comment
matkt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,13 +14,10 @@ | |
| */ | ||
| package org.hyperledger.besu.ethereum.bonsai; | ||
|
|
||
| import org.hyperledger.besu.ethereum.worldstate.PeerTrieNodeFinder; | ||
| import org.hyperledger.besu.ethereum.worldstate.WorldStateStorage; | ||
| import org.hyperledger.besu.plugin.services.storage.KeyValueStorage; | ||
| import org.hyperledger.besu.plugin.services.storage.KeyValueStorageTransaction; | ||
|
|
||
| import java.util.Optional; | ||
|
|
||
| import org.slf4j.Logger; | ||
| import org.slf4j.LoggerFactory; | ||
|
|
||
|
|
@@ -35,15 +32,8 @@ public BonsaiInMemoryWorldStateKeyValueStorage( | |
| final KeyValueStorage codeStorage, | ||
| final KeyValueStorage storageStorage, | ||
| final KeyValueStorage trieBranchStorage, | ||
| final KeyValueStorage trieLogStorage, | ||
| final Optional<PeerTrieNodeFinder> fallbackNodeFinder) { | ||
| super( | ||
| accountStorage, | ||
| codeStorage, | ||
| storageStorage, | ||
| trieBranchStorage, | ||
| trieLogStorage, | ||
| fallbackNodeFinder); | ||
| final KeyValueStorage trieLogStorage) { | ||
| super(accountStorage, codeStorage, storageStorage, trieBranchStorage, trieLogStorage); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👍 |
||
| } | ||
|
|
||
| @Override | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Think we should consider alternatives to bloating ProtocolContext, a global object.
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, this is indeed a problem. I tried a lot to do otherwise but this was the cleanest I found with the current code structure