Conversation
1 task
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #833 +/- ##
==========================================
+ Coverage 85.24% 85.28% +0.03%
==========================================
Files 281 281
Lines 22390 22392 +2
Branches 3391 3391
==========================================
+ Hits 19086 19096 +10
+ Misses 2615 2610 -5
+ Partials 689 686 -3 ☔ View full report in Codecov by Sentry. |
11a0131 to
6309230
Compare
afef179 to
f7652cb
Compare
6309230 to
68a887d
Compare
f7652cb to
0242b97
Compare
1 task
68a887d to
4a9bd3e
Compare
0242b97 to
a9205ca
Compare
4a9bd3e to
a4bbe0f
Compare
a9205ca to
7be536d
Compare
a4bbe0f to
05498fa
Compare
7be536d to
7fbb16a
Compare
msbrogli
previously approved these changes
Nov 23, 2023
jansegre
previously approved these changes
Nov 23, 2023
05498fa to
905d6bc
Compare
7fbb16a to
34467ed
Compare
Base automatically changed from
refactor/verification-inheritance/3-verify-minted-tokens
to
master
November 23, 2023 21:02
The base branch was changed.
34467ed to
7df606c
Compare
jansegre
approved these changes
Nov 23, 2023
msbrogli
approved these changes
Nov 24, 2023
7df606c to
64c94b8
Compare
64c94b8 to
2d102bb
Compare
2 tasks
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
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 #832
Motivation
Simplify block verification by removing the
BlockVerifierinheritance fromMergeMinedBlockVerifier, as it was not necessary.To do that, the main verification "entrypoints" (
verify_basic(),verify(), andverify_without_storage()) are moved to theVerificationService, making it a single source of verification definition for all vertex types (the same will be done for other types in the next PRs).This also guarantees that it's not possible to call
BlockVerifier.verify()with aMergeMinedBlock, for example, which would be wrong. By using the single implementation from theVerificationService, we make sure the most specific verifier is called.Acceptance Criteria
verify_basic(),verify(), andverify_without_storage()fromBlockVerifiertoVerificationService.verify_without_storage()fromMergeMinedBlockVerifiertoVerificationService, removing itsBlockVerifierinheritance, which is not needed anymore.Checklist
master, confirm this code is production-ready and can be included in future releases as soon as it gets merged