Skip to content

cl/fork: remove dead fork version length check#18888

Closed
MoNyAvA wants to merge 3 commits intoerigontech:mainfrom
MoNyAvA:cl/fork-domain-cleanup
Closed

cl/fork: remove dead fork version length check#18888
MoNyAvA wants to merge 3 commits intoerigontech:mainfrom
MoNyAvA:cl/fork-domain-cleanup

Conversation

@MoNyAvA
Copy link
Copy Markdown
Contributor

@MoNyAvA MoNyAvA commented Jan 30, 2026

Domain was performing a length check on a slice derived from common.Bytes4 ([4]byte), so len(forkVersion) was always 4 and the error branch was unreachable. This added noise without providing any real safety
Simplified Domain to work directly with the fixed-size [4]byte fork versions (PreviousVersion / CurrentVersion) and removed the unreachable length check, keeping the external behavior and error handling otherwise unchanged

@domiwei domiwei enabled auto-merge (squash) February 3, 2026 03:40
@Giulio2002
Copy link
Copy Markdown
Collaborator

🤖 Closed by automated review.

This PR appears to be an AI-generated stylistic/convention change (dead code removal, unused variable cleanup, redundant code removal) from a non-core contributor.

These types of changes are not being accepted at this time. If you believe this was closed in error, please reach out to a maintainer.

@Giulio2002 Giulio2002 closed this Feb 17, 2026
auto-merge was automatically disabled February 17, 2026 19:55

Pull request was closed

@Giulio2002
Copy link
Copy Markdown
Collaborator

[SharovBot] 🤖 Closed by automated review.

This PR appears to be an AI-generated stylistic/convention change (dead code removal, unused variable cleanup, redundant code removal) from a non-core contributor.

These types of changes are not being accepted at this time. If you believe this was closed in error, please reach out to a maintainer.

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.

5 participants