Skip to content

Move pinning reupload command to root level #767

Description

@Cafe137

The pinning reupload command takes a Swarm hash, and instructs the Bee node to fetch that data, stamp it with the same or a new postage batch, and reupload to the network.

This is useful when:

  • The end user wants to re-stamp the data with a longer TTL postage batch
  • When the postage batch has already expired, but the data is still retrievable from node caches
  • When the file is erasure coded, and some chunks are missing ("repair")

So it doesn't make much sense to have this command hidden under the pinning group; it should be a top-level command instead.

Completion Criteria

  • The command is available as swarm-cli reupload
  • The reuploads also correctly get added to the upload history
  • At least one integration test that runs the reupload command, and verifies that it has been added to the upload history with the new postage batch id

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions