Interface BitswapOptions

interface BitswapOptions {
    hashLoader?: MultihashHasherLoader;
    incomingStreamTimeout?: number;
    maxInboundStreams?: number;
    maxOutboundStreams?: number;
    statsComputeThrottleMaxQueueSize?: number;
    statsComputeThrottleTimeout?: number;
    statsEnabled?: boolean;
}

Properties

Enables loading esoteric hash functions

incomingStreamTimeout?: number

Default: 30000

maxInboundStreams?: number

Default: 32

maxOutboundStreams?: number

Default: 128

statsComputeThrottleMaxQueueSize?: number

Default: 1000

statsComputeThrottleTimeout?: number

Default: 1000

statsEnabled?: boolean

Whether stats are enabled. Default: false

Generated using TypeDoc