From 376ec71773ed43c62a8f672dc9f2dd15e92e2bda Mon Sep 17 00:00:00 2001 From: junderw Date: Thu, 13 Jul 2023 13:31:57 +0900 Subject: [PATCH] Fix: Allow detection of 1 byte annexes --- backend/src/api/common.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/backend/src/api/common.ts b/backend/src/api/common.ts index b854c1701..49d2c0458 100644 --- a/backend/src/api/common.ts +++ b/backend/src/api/common.ts @@ -560,7 +560,6 @@ export class Common { const witness = input.witness; // See BIP 341: Script validation rules const hasAnnex = witness.length >= 2 && - witness[witness.length - 1].length > 1 && witness[witness.length - 1][0] === 0x50; const scriptSpendMinLength = hasAnnex ? 3 : 2; const maybeScriptSpend = witness.length >= scriptSpendMinLength;