-
Notifications
You must be signed in to change notification settings - Fork 30
refactor(daa): externalize block dependencies #895
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
Merged
Merged
Conversation
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
3444e20
to
869420e
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #895 +/- ##
==========================================
+ Coverage 85.02% 85.16% +0.14%
==========================================
Files 294 295 +1
Lines 22801 22864 +63
Branches 3435 3443 +8
==========================================
+ Hits 19386 19472 +86
+ Misses 2726 2710 -16
+ Partials 689 682 -7 ☔ View full report in Codecov by Sentry. |
d4b1031
to
d7f0dd3
Compare
5bb8188
to
aeb3005
Compare
glevco
commented
Dec 22, 2023
b64479b
to
289059e
Compare
1 task
msbrogli
requested changes
Dec 26, 2023
289059e
to
c4aa2b8
Compare
e774d52
to
103162b
Compare
7e2e3ee
to
522a33e
Compare
522a33e
to
67326fd
Compare
Base automatically changed from
feat/feature-activation/remove-enable-usage
to
master
January 19, 2024 19:00
103162b
to
204fa2c
Compare
jansegre
approved these changes
Feb 1, 2024
204fa2c
to
b895832
Compare
msbrogli
approved these changes
Mar 21, 2024
5a1aaf6
to
7eb1d79
Compare
7eb1d79
to
ae05d01
Compare
1 task
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Depends on #909
Motivation
Change the DAA so it does not access the storage directly. Instead, block verification can pass pre-fetched dependencies through a new
SimpleMemoryStorage
. This will be useful for Multiprocess Verification.Acceptance Criteria
SimpleMemoryStorage
class that will be used for storing pre-fetched verification dependencies in memory.calculate_block_difficulty
andcalculate_next_weight
to accept aSimpleMemoryStorage
, which is used to retrieve pre-fetched parent blocks.verify_weight
to pre-fetch DAA dependencies.Checklist
master
, confirm this code is production-ready and can be included in future releases as soon as it gets merged