Skip to content

Commit

Permalink
clarifies the meaning of negative value for block part size
Browse files Browse the repository at this point in the history
  • Loading branch information
staheri14 committed Aug 25, 2023
1 parent 6dde431 commit f47fdfe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/trace/schema/consensus.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ const (

// BlockPartSizeFieldKey is the name of the field that stores the size of a block
// part in bytes. The value is an int64.
// Negative value indicates unknown block part size.
BlockPartSizeFieldKey = "block_part_size"
)

Expand All @@ -66,6 +67,8 @@ const (
// following schema:
//
// | time | height | round | peer | index | transfer type | block_part_size |
// Negative value for `size` i.e., block_part_size indicates unknown block part
// size.
func WriteBlockPart(
client *trace.Client,
height int64,
Expand Down

0 comments on commit f47fdfe

Please sign in to comment.