Skip to content

Commit

Permalink
Reword GetLeavesByRange comment (#1088)
Browse files Browse the repository at this point in the history
pav-kv authored Apr 13, 2018
1 parent 21405ed commit 6bd2b5f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions storage/log_storage.go
Original file line number Diff line number Diff line change
@@ -47,13 +47,13 @@ type ReadOnlyLogTreeTX interface {
GetSequencedLeafCount(ctx context.Context) (int64, error)
// GetLeavesByIndex returns leaf metadata and data for a set of specified sequenced leaf indexes.
GetLeavesByIndex(ctx context.Context, leaves []int64) ([]*trillian.LogLeaf, error)
// GetLeavesByRange returns leaf data for a range of indexes. Leaves are
// returned ordered by their LeafIndex, the first one is always `start`. The
// returned slice may be smaller than `count` if the requested range has
// GetLeavesByRange returns leaf data for a range of indexes. The returned
// slice is a contiguous prefix of leaves in [start, start+count) ordered by
// LeafIndex. It will be shorter than `count` if the requested range has
// missing entries (e.g., it extends beyond the size of a LOG tree), or
// `count` is too big to handle in one go.
// For PREORDERED_LOG trees, must return leaves beyond the tree size if they
// are stored, in order to allow integrating them into the tree.
// For PREORDERED_LOG trees, *must* return leaves beyond the tree size if
// they are stored, in order to allow integrating them into the tree.
GetLeavesByRange(ctx context.Context, start, count int64) ([]*trillian.LogLeaf, error)
// GetLeavesByHash looks up sequenced leaf metadata and data by their Merkle leaf hash. If the
// tree permits duplicate leaves callers must be prepared to handle multiple results with the

0 comments on commit 6bd2b5f

Please sign in to comment.