fix format in ScriptInterpreter
This commit is contained in:
parent
512d9d39ee
commit
9a64cb0ea1
@ -20,7 +20,7 @@ function spec(b) {
|
|||||||
function ScriptInterpreter() {
|
function ScriptInterpreter() {
|
||||||
this.stack = [];
|
this.stack = [];
|
||||||
this.disableUnsafeOpcodes = true;
|
this.disableUnsafeOpcodes = true;
|
||||||
};
|
}
|
||||||
|
|
||||||
ScriptInterpreter.prototype.eval = function eval(script, tx, inIndex, hashType, callback) {
|
ScriptInterpreter.prototype.eval = function eval(script, tx, inIndex, hashType, callback) {
|
||||||
if ("function" !== typeof callback) {
|
if ("function" !== typeof callback) {
|
||||||
@ -748,7 +748,7 @@ function spec(b) {
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
console.log('opcode '+opcode);
|
console.log('opcode ' + opcode);
|
||||||
throw new Error("Unknown opcode encountered");
|
throw new Error("Unknown opcode encountered");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user