From db82bd054c0c68c0e1e702deab0b76ded910e239 Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Wed, 20 Aug 2025 11:51:20 -0700 Subject: [PATCH] Create JSON object for block processing without literal strings. --- src/lib/block.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/block.ts b/src/lib/block.ts index 16bc88b..2e0da01 100644 --- a/src/lib/block.ts +++ b/src/lib/block.ts @@ -274,9 +274,9 @@ export class Block { throw new Error('Block is missing proof-of-work. Use pow() and try again.') } const data = { - "subtype": this.subtype, - "json_block": "true", - "block": this.toJSON() + subtype: this.subtype, + json_block: true, + block: this.toJSON() } const res = await rpc.call('process', data) if (res.hash == null) { -- 2.47.3