Skip to content

Commit

Permalink
proto: add inner op max prefix length restriction comment
Browse files Browse the repository at this point in the history
  • Loading branch information
colin-axner committed Sep 25, 2024
1 parent 5b14cd6 commit e77f94e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion go/proofs.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion proto/cosmos/ics23/v1/proofs.proto
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,8 @@ message InnerSpec {
repeated int32 child_order = 1;
int32 child_size = 2;
int32 min_prefix_length = 3;
int32 max_prefix_length = 4;
// the max prefix length must be less than the minimum prefix length + child size
int32 max_prefix_length = 4;
// empty child is the prehash image that is used when one child is nil (eg. 20 bytes of 0)
bytes empty_child = 5;
// hash is the algorithm that must be used for each InnerOp
Expand Down
1 change: 1 addition & 0 deletions rust/src/cosmos.ics23.v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ pub struct InnerSpec {
pub child_size: i32,
#[prost(int32, tag = "3")]
pub min_prefix_length: i32,
/// the max prefix length must be less than the minimum prefix length + child size
#[prost(int32, tag = "4")]
pub max_prefix_length: i32,
/// empty child is the prehash image that is used when one child is nil (eg. 20 bytes of 0)
Expand Down
Binary file modified rust/src/proto_descriptor.bin
Binary file not shown.

0 comments on commit e77f94e

Please sign in to comment.