]> git.codecow.com Git - libnemo.git/commitdiff
Remove redundant signature check.
authorChris Duncan <chris@zoso.dev>
Sat, 9 Aug 2025 07:02:34 +0000 (00:02 -0700)
committerChris Duncan <chris@zoso.dev>
Sat, 9 Aug 2025 07:02:34 +0000 (00:02 -0700)
src/lib/block.ts

index 5da51428d651e0578664307dc7539bda535e99a8..8fed8a8224595f4673ab6b29986ab4613549efc6 100644 (file)
@@ -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')