From: Chris Duncan Date: Tue, 31 Dec 2024 22:36:56 +0000 (-0800) Subject: Point block pow to PowGpu for testing. X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=e23e3c8e9ce81232fe5bd730bccf15326043e524;p=libnemo.git Point block pow to PowGpu for testing. --- diff --git a/src/lib/block.ts b/src/lib/block.ts index 83b4cdd..ac36f39 100644 --- a/src/lib/block.ts +++ b/src/lib/block.ts @@ -16,7 +16,7 @@ import { Pow, PowGpu } from './workers.js' * of three derived classes: SendBlock, ReceiveBlock, ChangeBlock. */ abstract class Block { - static #pool: Pool = new Pool(Pow) + static #pool: Pool = new Pool(PowGpu) account: Account type: string = 'state' abstract subtype: 'send' | 'receive' | 'change' @@ -86,7 +86,8 @@ abstract class Block { const data = { "hash": this.previous, "threshold": (this instanceof SendBlock || this instanceof ChangeBlock) - ? THRESHOLD_SEND + // ? THRESHOLD_SEND + ? 0 : THRESHOLD_RECEIVE } const [{ work }] = await Block.#pool.assign([data])