script: better script parse error formatting.
This commit is contained in:
parent
3beae441bb
commit
6d3401f08b
@ -2989,6 +2989,11 @@ Script.format = function format(code) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (value === -1) {
|
||||
out.push('OP_INVALIDOPCODE');
|
||||
break;
|
||||
}
|
||||
|
||||
value = value.toString(16);
|
||||
|
||||
if (value.length < 2)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user