From 0939dc721f14a9183992e28dc35fce4141f119aa Mon Sep 17 00:00:00 2001 From: Chris Duncan Date: Sat, 9 Aug 2025 00:02:34 -0700 Subject: [PATCH] Remove redundant signature check. --- src/lib/block.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/lib/block.ts b/src/lib/block.ts index 5da5142..8fed8a8 100644 --- a/src/lib/block.ts +++ b/src/lib/block.ts @@ -422,10 +422,7 @@ export class Block { this.signature = bytes.toHex(sig) } else if (input instanceof Wallet && typeof param === 'number') { const wallet = input - const sig = await wallet.sign(param, this, 'hex') - if (this.signature !== sig) { - throw new Error('Wallet signature does not match block signature') - } + await wallet.sign(param, this, 'hex') } else if (typeof input === 'number') { const index = input const { Ledger } = await import('./wallet/ledger') -- 2.47.3