Skip to main content

Module single_threaded_pow_generator

Module single_threaded_pow_generator 

Source
Expand description

Single-threaded PoW search that works on every target.

No spawn_blocking, no Web Workers — run_chunk just runs the PoW measurement loop inline. WASM clients use this directly (with a relaxed pow_min) before workers are wired up; native callers can use it in unit tests where setting up a thread pool would be overkill.

Despite the simplicity, this generator does real PoW work — it is not a no-op stub. All the orchestration (work-stealing, early-exit, tracker registration) lives in the shared crate::tools::pow_generator::pow_generator::run_pool dispatcher.

Structs§

SingleThreadedPowGenerator