From: Chris Duncan Date: Fri, 4 Jul 2025 08:11:53 +0000 (-0700) Subject: Rename block pool for clarity. X-Git-Tag: v0.10.5~119 X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=9b2d99d1a22ebcad63ed212a2ddbd6c7276b0d0a;p=libnemo.git Rename block pool for clarity. --- diff --git a/src/lib/block.ts b/src/lib/block.ts index 997f930..563f78f 100644 --- a/src/lib/block.ts +++ b/src/lib/block.ts @@ -16,7 +16,7 @@ import { NanoNaCl, NanoNaClWorker } from '#workers' * of three derived classes: SendBlock, ReceiveBlock, ChangeBlock. */ abstract class Block { - static #pool: Pool + static #poolNanoNaCl: Pool account: Account type: string = 'state' abstract subtype: 'send' | 'receive' | 'change' @@ -38,7 +38,7 @@ abstract class Block { } else { throw new TypeError('Invalid account') } - Block.#pool ??= new Pool(NanoNaClWorker) + Block.#poolNanoNaCl ??= new Pool(NanoNaClWorker) } /** @@ -141,7 +141,7 @@ abstract class Block { } const account = await Account.fromPrivateKey(key) try { - const result = (await Block.#pool.assign({ + const result = (await Block.#poolNanoNaCl.assign({ method: 'detached', msg: hex.toArray(this.hash), privateKey: hex.toArray(`${account.privateKey}`)