-
Notifications
You must be signed in to change notification settings - Fork 555
[WIP] witness state caching #1818
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
Draft
pratikspatil024
wants to merge
23
commits into
psp-pos-2955
Choose a base branch
from
psp-pos-2947
base: psp-pos-2955
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+692
−43
Draft
Changes from 4 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
e53b771
core: implemented witness state caching
pratikspatil024 3d66730
core/state: added helper functions
pratikspatil024 57ba58f
Merge branch 'develop' of https://github.com/maticnetwork/bor into ps…
pratikspatil024 62bd494
core: updates in witness state caching
pratikspatil024 d4707da
core: updated the witness state caching mechanism to now use 2 slidin…
pratikspatil024 46139f2
core: added a way for full nodes to replicate the witness state cache
pratikspatil024 7492ecc
Merge branch 'develop' of https://github.com/maticnetwork/bor into ps…
pratikspatil024 c6f6ac8
Merge branch 'psp-pos-2955' of https://github.com/maticnetwork/bor in…
pratikspatil024 464072b
eth/protocols/wit: added message type to get and send reduced witnesses
pratikspatil024 4d42f38
eth, core: added logic for reduced witnesses
pratikspatil024 211e129
core, eth: sending reduced witness
pratikspatil024 3dfe7ad
eth: updated mock witness peer
pratikspatil024 3683987
fix lint
pratikspatil024 737856f
updated name reduced -> compact
pratikspatil024 f05239e
core: made compactWitnessCacheWindowSize and compactWitnessCacheOverl…
pratikspatil024 40a9051
core: added timer metric here to understand the performance impact of…
pratikspatil024 bee6136
eth: added caching for compact witnesses
pratikspatil024 ee7342f
core, eth: made parallel stateless import and compact witness (witnes…
pratikspatil024 61b1a40
core: bug fix in witness caching - prevent cache bloat from recaching…
pratikspatil024 eddf235
core, eth: bug fix - setting the correct start block accross the nodes
pratikspatil024 d5a365d
Merge branch 'psp-pos-2955' of https://github.com/maticnetwork/bor in…
pratikspatil024 f95b0d6
eth: use full witness if peer is wit/1
pratikspatil024 6127cb1
eth: bug fix: fixed compatibility between wit/1 and wit/2 caused by u…
pratikspatil024 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
Some comments aren't visible on the classic Files Changed page.
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
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.
I think we should move this before the merge (cache -> witness.state). Let me know if you think the same. @cffls @lucca30
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.
Not sure if I understood the reason behind it.
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.
We validate the witness before the execution. Now once we have the cache, I merge the cache into the witness, so my question was to do this witness validation before the merge or leave it after the merge.