opcode: handle OP_1NEGATE in opcode.toNum.
This commit is contained in:
parent
d6ce66bce9
commit
af132c8818
@ -207,6 +207,9 @@ Opcode.prototype.toSmall = function toSmall() {
|
||||
*/
|
||||
|
||||
Opcode.prototype.toNum = function toNum(minimal, limit) {
|
||||
if (this.value === opcodes.OP_1NEGATE)
|
||||
return ScriptNum.fromInt(-1);
|
||||
|
||||
const smi = this.toSmall();
|
||||
|
||||
if (smi !== -1)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user