Documentation
    Preparing search index...

    Interface IDataDistributionPolicy

    Pluggable data distribution policy

    interface IDataDistributionPolicy {
        willStore(peerId: string, blobHash: Hash): boolean;
    }

    Implemented by

    Index

    Methods

    Methods

    • Consulted for data sync to decide which blobs to send to which peers. Receives the content hash (sufficient for hash-based routing such as DHT).

      Parameters

      • peerId: string
      • blobHash: Hash

      Returns boolean