Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions p2p/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ type Client interface {
// reqCount is the minimum number of keys that are actually required by the caller
// to successfully perform the reuquired operation
BatchRetrieve(ctx context.Context, keys []string, reqCount int, txID string, localOnly ...bool) (map[string][]byte, error)

BatchRetrieveStream(ctx context.Context, keys []string, required int32, txID string, onSymbol func(base58Key string, data []byte) error, localOnly ...bool) (written int32, err error)

// Store store data to the network, which will trigger the iterative store message
// - the base58 encoded identifier will be returned
Store(ctx context.Context, data []byte, typ int) (string, error)
Expand Down
Loading