From: Chris Duncan Date: Sat, 9 Aug 2025 07:02:34 +0000 (-0700) Subject: Remove redundant signature check. X-Git-Tag: v0.10.5~41^2~155 X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=0939dc721f14a9183992e28dc35fce4141f119aa;p=libnemo.git Remove redundant signature check. --- 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')