ethersphere / bee

Bee is a Swarm client implemented in Go. It’s the basic building block for the Swarm network: a private; decentralized; and self-sustaining network for permissionless publishing and access to your (application) data.
https://www.ethswarm.org
BSD 3-Clause "New" or "Revised" License
1.44k stars 338 forks source link

feat: store batch hash #4717

Open acha-bill opened 3 days ago

acha-bill commented 3 days ago

Checklist

Description

Fix pullsyc ignoring chunks having batch with changed timestamp or index because reserve only checks for addr/batchId

  1. Migrate BatchRadiusItem and ChunkBinItem to include the stamps hash.
  2. Pullsync offer now includes the stamp hash. Then the reserve can check for any stamp changes using the hash alongside the batchID.

Related Issues

https://github.com/ethersphere/bee/issues/4703 https://github.com/ethersphere/bee/issues/4704