Fix: Allow detection of 1 byte annexes
This commit is contained in:
parent
95a8752a0a
commit
43d41fca95
@ -560,7 +560,6 @@ export class Common {
|
|||||||
const witness = input.witness;
|
const witness = input.witness;
|
||||||
// See BIP 341: Script validation rules
|
// See BIP 341: Script validation rules
|
||||||
const hasAnnex = witness.length >= 2 &&
|
const hasAnnex = witness.length >= 2 &&
|
||||||
witness[witness.length - 1].length > 1 &&
|
|
||||||
witness[witness.length - 1][0] === 0x50;
|
witness[witness.length - 1][0] === 0x50;
|
||||||
const scriptSpendMinLength = hasAnnex ? 3 : 2;
|
const scriptSpendMinLength = hasAnnex ? 3 : 2;
|
||||||
const maybeScriptSpend = witness.length >= scriptSpendMinLength;
|
const maybeScriptSpend = witness.length >= scriptSpendMinLength;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user