Skip to content

Commit

Permalink
docs: update put desc
Browse files Browse the repository at this point in the history
  • Loading branch information
nugaon committed Nov 5, 2024
1 parent d54dff5 commit c03ddeb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/storer/internal/reserve/reserve.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,11 @@ func New(
}

// Reserve Put has to handle multiple possible scenarios.
// 1. Since the same chunk may belong to different postage batches, the reserve will support one chunk to many postage
// batches relationship.
// 1. Since the same chunk may belong to different postage stamp indices, the reserve will support one chunk to many postage
// stamp indices relationship.
// 2. A new chunk that shares the same stamp index belonging to the same batch with an already stored chunk will overwrite
// the existing chunk if the new chunk has a higher stamp timestamp (regardless of batch type).
// 3. A new chunk that has the same address belonging to the same batch with an already stored chunk will overwrite the existing chunk
// 3. A new chunk that has the same address belonging to the same stamp index with an already stored chunk will overwrite the existing chunk
// if the new chunk has a higher stamp timestamp (regardless of batch type and chunk type, eg CAC & SOC).
func (r *Reserve) Put(ctx context.Context, chunk swarm.Chunk) error {

Expand Down

0 comments on commit c03ddeb

Please sign in to comment.