OptionalautoplayRun advance() every tickMs while a job is mining. Default false.
OptionalbitsLeading-zero bits gained per step. Default 6.
OptionalclockClock used for timestamps. Default: Date.now.
OptionaldenyMake mineAndPublish fail with publish denied after mining. Default false.
OptionalhashesHashes each worker contributes per step. Default 250000.
OptionallatencyArtificial latency (ms) applied before each result. Default 0, which
responds synchronously inside handleMessage.
OptionalmaxJobs mined at once; others queue. Default 1.
OptionalmaxHighest accepted target. Default 32.
OptionalmaxWorker cap per job. Default 4.
OptionalschedulerScheduler used for deferred pushes. Default: setTimeout.
OptionalseedSeed for deterministic ids and fixture ordering. Default 1.
OptionalstepElapsed mining ms per step. Default 1000.
OptionaltickAutoplay interval in ms. Default stepMs.
Factory options for the pow mock.
Example