Skip to main content

wasm_init

Function wasm_init 

Source
pub fn wasm_init(verbose: bool)
Expand description

Initialise logging and panic hook. Must be called manually before using the WASM module. Pass verbose = true for the main worker (logs confirmation), false for PoW sub-workers (silent).