Skip to content
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

Remove supported block version check #2275

Closed
wants to merge 1 commit into from

Conversation

wojciechos
Copy link
Contributor

Allows processing of all versions without explicit checks

@wojciechos wojciechos force-pushed the wojciechos/remove_versions_check branch 3 times, most recently from e515322 to da2f585 Compare November 19, 2024 11:06
Copy link

codecov bot commented Nov 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 75.38%. Comparing base (7c67921) to head (d48baf2).
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2275      +/-   ##
==========================================
- Coverage   75.45%   75.38%   -0.08%     
==========================================
  Files         106      106              
  Lines       11237    11228       -9     
==========================================
- Hits         8479     8464      -15     
- Misses       2124     2128       +4     
- Partials      634      636       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.


🚨 Try these New Features:

@wojciechos wojciechos force-pushed the wojciechos/remove_versions_check branch 2 times, most recently from 4cb2071 to ba5e7b8 Compare November 19, 2024 11:32
@wojciechos wojciechos marked this pull request as ready for review November 19, 2024 11:41
Allows processing of all versions without explicit checks
@wojciechos wojciechos force-pushed the wojciechos/remove_versions_check branch from ba5e7b8 to d48baf2 Compare November 19, 2024 11:42
@@ -382,7 +365,7 @@ func (b *Blockchain) VerifyBlock(block *core.Block) error {
}

func verifyBlock(txn db.Transaction, block *core.Block) error {
if err := checkBlockVersion(block.ProtocolVersion); err != nil {
if _, err := core.ParseBlockVersion(block.ProtocolVersion); err != nil {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wondering if we still need this or should also remove the block parsing check?

@wojciechos wojciechos closed this Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant