mirror of
https://github.com/mempool/mempool.git
synced 2025-02-22 22:25:34 +01:00
Fix: Allow detection of 1 byte annexes
This commit is contained in:
parent
95a8752a0a
commit
43d41fca95
1 changed files with 0 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue