From 7e6c9d79e4cd0a5fbae0d4874365296b78cbcc56 Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Thu, 7 Aug 2025 18:16:40 -0700 Subject: [PATCH] Fix link part of block hash. --- src/lib/block.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/block.ts b/src/lib/block.ts index 4199f29..5912593 100644 --- a/src/lib/block.ts +++ b/src/lib/block.ts @@ -137,10 +137,10 @@ export class Block { this.previous.padStart(64, '0'), this.representative.publicKey, dec.toHex(this.balance, 32), - ...this.link + this.link ] const hash = new Blake2b(32) - data.forEach(d => typeof d === 'string' ? hash.update(hex.toBytes(d)) : d) + data.forEach(d => typeof d === 'string' ? hash.update(hex.toBytes(d)) : hash.update(d)) return format === 'hex' ? hash.digest(format) : hash.digest() } catch (err) { console.error(err) -- 2.47.3