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

feat: add stricter checks for iavl spec and tendermint spec #386

Merged
merged 19 commits into from
Oct 23, 2024

Conversation

colin-axner
Copy link
Contributor

No description provided.

@colin-axner colin-axner changed the title imp: add stricter checks for iavl spec and tendermint spec feat: add stricter checks for iavl spec and tendermint spec Oct 17, 2024
@colin-axner colin-axner marked this pull request as ready for review October 17, 2024 09:42
@@ -75,6 +84,26 @@ func validateIavlOps(op opType, layerNum int) error {
return nil
}

// validateTendermintOps validates the prefix to ensure it begins with []byte{1}.
func validateTendermintOps(op *InnerOp) error {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

for reference

Copy link
Member

Choose a reason for hiding this comment

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

Adding for any future reader context.

In store/v2, the same thing is happening here in ProofFromByteSlices ref

Base automatically changed from colin/deobfuscate-dragonberry to master October 21, 2024 08:36
Copy link
Member

@damiannolan damiannolan left a comment

Choose a reason for hiding this comment

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

🙏🏻

@@ -75,6 +84,26 @@ func validateIavlOps(op opType, layerNum int) error {
return nil
}

// validateTendermintOps validates the prefix to ensure it begins with []byte{1}.
func validateTendermintOps(op *InnerOp) error {
Copy link
Member

Choose a reason for hiding this comment

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

Adding for any future reader context.

In store/v2, the same thing is happening here in ProofFromByteSlices ref

@colin-axner colin-axner merged commit 315aa71 into master Oct 23, 2024
6 checks passed
@colin-axner colin-axner deleted the colin/stricter-iavl-checks branch October 23, 2024 09:44
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.

3 participants