MineWorkAdmissionOptions
@totemsdk/txpow / MineWorkAdmissionOptions
Interface: MineWorkAdmissionOptions
Properties
_skipWorker?
optional_skipWorker?:boolean
Skip the Node.js worker_threads Worker (for testing).
chunkSize?
optionalchunkSize?:number
Hash iterations per async yield (default: 10_000).
forceJs?
optionalforceJs?:boolean
Force the pure-JS mining path (for testing).
maxIterations?
optionalmaxIterations?:number
Hard cap on total iterations (default: unlimited).
prng?
optionalprng?:Uint8Array<ArrayBufferLike>
Deterministic 32-byte PRNG for the TxBody (testing only). When omitted a cryptographically random PRNG is generated.
relay?
optionalrelay?:MinimaWorkRelay
Preferred Minima block relay boundary. When supplied, a genuine current Minima block is submitted through the relay exactly once. Falls back to the deprecated provider.broadcastBlockCandidate only when no relay is set.
signal?
optionalsignal?:AbortSignal
AbortSignal — rejects the Promise when aborted.
timeMilli?
optionaltimeMilli?:bigint
Override the template timeMilli for deterministic testing.