-
Notifications
You must be signed in to change notification settings - Fork 69
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
Conversation
Co-authored-by: Damian Nolan <[email protected]>
…23 into colin/deobfuscate-dragonberry
@@ -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 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for reference
There was a problem hiding this comment.
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
…into colin/stricter-iavl-checks
There was a problem hiding this 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 { |
There was a problem hiding this comment.
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
No description provided.