TransactionOutput: Kill an unnecessary instance variable.
@@ -55,8 +55,6 @@ public class TransactionOutput extends ChildMessage {
private boolean availableForSpending;
@Nullable private TransactionInput spentBy;
- private int scriptLen;
-
/**
* Deserializes a transaction output message. This is usually part of a transaction message.
*/
@@ -139,7 +137,7 @@ public class TransactionOutput extends ChildMessage {
@Override
protected void parse() throws ProtocolException {
value = readInt64();
- scriptLen = (int) readVarInt();
+ int scriptLen = (int) readVarInt();
length = cursor - offset + scriptLen;
scriptBytes = readBytes(scriptLen);
}
