3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-02-14 19:25:51 +00:00

Script: couple of minor reformattings.

This commit is contained in:
Mike Hearn 2013-04-22 14:37:34 +02:00
parent e18b9d363e
commit 44ead8b6a1

View File

@ -47,9 +47,7 @@ class ScriptChunk {
this.startLocationInProgram = startLocationInProgram;
}
public boolean equalsOpCode(int opCode) {
return isOpCode &&
data.length == 1 &&
(0xFF & data[0]) == opCode;
return isOpCode && data.length == 1 && (0xFF & data[0]) == opCode;
}
}
@ -1560,7 +1558,6 @@ public class Script {
* @param scriptSigIndex The index in txContainingThis of the scriptSig (note: NOT the index of the scriptPubKey).
* @param scriptPubKey The connected scriptPubKey containing the conditions needed to claim the value.
* @param enforceP2SH Whether "pay to script hash" rules should be enforced. If in doubt, set to true.
* @throws VerificationException if this script does not correctly spend the scriptPubKey
*/
public void correctlySpends(Transaction txContainingThis, long scriptSigIndex, Script scriptPubKey,
boolean enforceP2SH) throws ScriptException {