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

BELC4 #64

Closed
wants to merge 1 commit into from
Closed

BELC4 #64

wants to merge 1 commit into from

Conversation

yoshidan
Copy link
Contributor

@yoshidan yoshidan commented Nov 13, 2024

Add validation to ClientState::try_from(value: RawClientState) that prevents the use of a non-zero revision_number.

Signed-off-by: Naohiro Yoshida <[email protected]>
@yoshidan yoshidan requested a review from 3100 November 14, 2024 06:05
@@ -157,6 +157,12 @@ impl TryFrom<RawClientState> for ClientState {
.as_ref()
.ok_or(Error::MissingLatestHeight)?;

if raw_latest_height.revision_number != 0 {
Copy link
Member

Choose a reason for hiding this comment

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

While this modifies the same lines of code as BELC3 #66 , since the BELC3 fixes also resolve the BELC4 problems, this PR doesn't appear to be necessary for merging.

https://github.com/datachainlab/parlia-elc/pull/66/files#diff-e8516aac7f0e5a1053a37ce52b1d1a7829f38b993b21df81a8c4726e392038a0R162

@yoshidan yoshidan closed this Nov 20, 2024
@yoshidan yoshidan deleted the BELC4 branch November 27, 2024 08:55
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.

2 participants