Skip to main content

mineTxPoWInProcess

@totemsdk/txpow


@totemsdk/txpow / mineTxPoWInProcess

Function: mineTxPoWInProcess()

mineTxPoWInProcess(txBodyBytes, txnDifficulty, options?): Promise<MineResult>

Run the mining loop in the current thread/task. Called directly by the Node.js worker, and by the browser code path.

Parameters​

txBodyBytes​

Uint8Array

txnDifficulty​

Uint8Array

options?​

MineOptions

Returns​

Promise<MineResult>