script: do not change inputs
This commit is contained in:
parent
7f0ea92a43
commit
f787590efe
@ -112,6 +112,7 @@ Peer.prototype.broadcast = function broadcast(items) {
|
|||||||
e: new EventEmitter(),
|
e: new EventEmitter(),
|
||||||
timeout: setTimeout(function() {
|
timeout: setTimeout(function() {
|
||||||
entry.e.emit('timeout');
|
entry.e.emit('timeout');
|
||||||
|
clearInterval(entry.interval);
|
||||||
delete self._broadcast.map[key];
|
delete self._broadcast.map[key];
|
||||||
}, this._broadcast.timeout),
|
}, this._broadcast.timeout),
|
||||||
|
|
||||||
|
|||||||
@ -135,7 +135,7 @@ script.execute = function execute(s, stack, tx) {
|
|||||||
if (!res)
|
if (!res)
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
stack.push([ res ? 1 : 0 ]);
|
stack.push(res ? [ 1 ] : []);
|
||||||
}
|
}
|
||||||
|
|
||||||
} else if (o === 'checksigverify' || o === 'checksig') {
|
} else if (o === 'checksigverify' || o === 'checksig') {
|
||||||
@ -144,7 +144,7 @@ script.execute = function execute(s, stack, tx) {
|
|||||||
|
|
||||||
var pub = stack.pop();
|
var pub = stack.pop();
|
||||||
var sig = stack.pop();
|
var sig = stack.pop();
|
||||||
var type = sig.pop();
|
var type = sig[sig.length - 1];
|
||||||
if (type !== 1)
|
if (type !== 1)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
@ -153,7 +153,7 @@ script.execute = function execute(s, stack, tx) {
|
|||||||
if (!res)
|
if (!res)
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
stack.push([ res ? 1 : 0 ]);
|
stack.push(res ? [ 1 ] : []);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// Unknown operation
|
// Unknown operation
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user