Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@web4/bitdrive-network-heuristics

bitwebs15MIT1.0.0

Networking heuristics for announcing Bitdrives on Bitswarm.

bitdrive, networking, chainstore, heuristics

readme

bitdrive-network-heuristics

Networking heuristics for announcing Bitdrives on Bitswarm

These heuristics are used in the bitdrive-daemon-client and bitdrive-cli.

Usage

There's only one exported method, which is used to enable the networking heuristics:

applyHeuristics(drive, networker)

Applies networking heuristics to a drive.

  • drive: A Bitdrive instance
  • networker: A @web4/chainstore-networker or Bitspace RemoteNetworker

License

MIT