-
Notifications
You must be signed in to change notification settings - Fork 27
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
refactor(verification): remove BlockVerifier inheritance [part 4/9] #833
Merged
glevco
merged 1 commit into
master
from
refactor/verification-inheritance/4-remove-block-inheritance
Nov 24, 2023
Merged
refactor(verification): remove BlockVerifier inheritance [part 4/9] #833
glevco
merged 1 commit into
master
from
refactor/verification-inheritance/4-remove-block-inheritance
Nov 24, 2023
Conversation
This file contains 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
1 task
glevco
changed the title
refactor(verification): remove BlockVerifier inheritance
refactor(verification): remove BlockVerifier inheritance [part 4/9]
Oct 27, 2023
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. |
glevco
force-pushed
the
refactor/verification-inheritance/3-verify-minted-tokens
branch
4 times, most recently
from
November 10, 2023 16:31
11a0131
to
6309230
Compare
glevco
force-pushed
the
refactor/verification-inheritance/4-remove-block-inheritance
branch
from
November 10, 2023 16:32
afef179
to
f7652cb
Compare
glevco
force-pushed
the
refactor/verification-inheritance/3-verify-minted-tokens
branch
from
November 10, 2023 17:02
6309230
to
68a887d
Compare
glevco
force-pushed
the
refactor/verification-inheritance/4-remove-block-inheritance
branch
from
November 10, 2023 17:04
f7652cb
to
0242b97
Compare
1 task
glevco
force-pushed
the
refactor/verification-inheritance/3-verify-minted-tokens
branch
from
November 16, 2023 17:03
68a887d
to
4a9bd3e
Compare
glevco
force-pushed
the
refactor/verification-inheritance/4-remove-block-inheritance
branch
from
November 16, 2023 17:04
0242b97
to
a9205ca
Compare
glevco
force-pushed
the
refactor/verification-inheritance/3-verify-minted-tokens
branch
from
November 16, 2023 20:05
4a9bd3e
to
a4bbe0f
Compare
glevco
force-pushed
the
refactor/verification-inheritance/4-remove-block-inheritance
branch
from
November 16, 2023 20:05
a9205ca
to
7be536d
Compare
glevco
force-pushed
the
refactor/verification-inheritance/3-verify-minted-tokens
branch
from
November 16, 2023 21:24
a4bbe0f
to
05498fa
Compare
glevco
force-pushed
the
refactor/verification-inheritance/4-remove-block-inheritance
branch
from
November 16, 2023 21:24
7be536d
to
7fbb16a
Compare
msbrogli
previously approved these changes
Nov 23, 2023
jansegre
previously approved these changes
Nov 23, 2023
glevco
force-pushed
the
refactor/verification-inheritance/3-verify-minted-tokens
branch
from
November 23, 2023 20:14
05498fa
to
905d6bc
Compare
glevco
force-pushed
the
refactor/verification-inheritance/4-remove-block-inheritance
branch
from
November 23, 2023 20:14
7fbb16a
to
34467ed
Compare
Base automatically changed from
refactor/verification-inheritance/3-verify-minted-tokens
to
master
November 23, 2023 21:02
glevco
dismissed stale reviews from jansegre and msbrogli
November 23, 2023 21:02
The base branch was changed.
glevco
force-pushed
the
refactor/verification-inheritance/4-remove-block-inheritance
branch
from
November 23, 2023 21:03
34467ed
to
7df606c
Compare
jansegre
approved these changes
Nov 23, 2023
msbrogli
approved these changes
Nov 24, 2023
glevco
force-pushed
the
refactor/verification-inheritance/4-remove-block-inheritance
branch
from
November 24, 2023 15:23
7df606c
to
64c94b8
Compare
glevco
force-pushed
the
refactor/verification-inheritance/4-remove-block-inheritance
branch
from
November 24, 2023 16:06
64c94b8
to
2d102bb
Compare
glevco
deleted the
refactor/verification-inheritance/4-remove-block-inheritance
branch
November 24, 2023 17:12
2 tasks
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
BlockVerifier
inheritance 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()
fromBlockVerifier
toVerificationService
.verify_without_storage()
fromMergeMinedBlockVerifier
toVerificationService
, removing itsBlockVerifier
inheritance, 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