Skip to content

Commit

Permalink
chore: added more detailed descriptions
Browse files Browse the repository at this point in the history
  • Loading branch information
troykessler committed May 3, 2024
1 parent 33a3e52 commit d7f4681
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 7 deletions.
12 changes: 10 additions & 2 deletions docs/static/openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4990,7 +4990,11 @@ paths:
description: compression_id ...
end_key:
type: string
description: end_key ...
title: >-
end_key is the last key before the pool should stop
indexing, it is
inclusive
bundle_proposal:
description: bundle_proposal ...
type: object
Expand Down Expand Up @@ -5527,7 +5531,11 @@ paths:
description: compression_id ...
end_key:
type: string
description: end_key ...
title: >-
end_key is the last key before the pool should stop
indexing, it is
inclusive
bundle_proposal:
description: bundle_proposal ...
type: object
Expand Down
3 changes: 2 additions & 1 deletion proto/kyve/pool/v1beta1/events.proto
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ message EventCreatePool {
// compression_id is the unique id of the compression type the bundles
// get compressed with
uint32 compression_id = 14;
// end_key is the last key before the pool should stop indexing
// end_key is the last key before the pool should stop indexing, it is
// inclusive
string end_key = 15;
}

Expand Down
3 changes: 2 additions & 1 deletion proto/kyve/pool/v1beta1/pool.proto
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ message Pool {
// compression_id ...
uint32 current_compression_id = 19;

// end_key ...
// end_key is the last key before the pool should stop indexing, it is
// inclusive
string end_key = 20;
}
4 changes: 3 additions & 1 deletion x/bundles/keeper/logic_bundles.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ func (k Keeper) AssertPoolCanRun(ctx sdk.Context, poolId uint64) error {
return types.ErrPoolDisabled
}

// Error if the end key is reached
// Error if the end key is reached. The chain will simply halt if this is the case,
// it is the responsibility of the protocol nodes to reach final consensus and that
// a bundle does not exceed the end_key
if pool.EndKey != "" && pool.CurrentKey == pool.EndKey {
return types.ErrEndKeyReached
}
Expand Down
3 changes: 2 additions & 1 deletion x/pool/types/events.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 x/pool/types/pool.pb.go

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

0 comments on commit d7f4681

Please sign in to comment.