ethersphere / swarm-cli

Manage your Bee node and interact with the Swarm network via the CLI
BSD 3-Clause "New" or "Revised" License
48 stars 21 forks source link

Optimise `manifest sync` by comparing hash obtained via bmt-js instead of downloading file #489

Closed Cafe137 closed 9 months ago

Cafe137 commented 10 months ago

We already have bmt-js installed in the project.

src/command/manifest/sync.ts

vvv

const remoteData = await this.bee.downloadData(Buffer.from(fork.node.getEntry).toString('hex'))

This is the offender line that can be optimised.