From 23279aff5f824a80cf26adc07d9741afa11c6b71 Mon Sep 17 00:00:00 2001 From: Mike Hearn Date: Thu, 9 Feb 2012 16:14:29 +0100 Subject: [PATCH] Change order of outpoint printing to be more consistent with Bitcoin practice --- src/com/google/bitcoin/core/TransactionOutPoint.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/com/google/bitcoin/core/TransactionOutPoint.java b/src/com/google/bitcoin/core/TransactionOutPoint.java index eb847d6c..a4efeefb 100644 --- a/src/com/google/bitcoin/core/TransactionOutPoint.java +++ b/src/com/google/bitcoin/core/TransactionOutPoint.java @@ -69,15 +69,11 @@ public class TransactionOutPoint extends ChildMessage implements Serializable { /** * Deserializes the message. This is usually part of a transaction message. * @param params NetworkParameters object. - * @param msg Bitcoin protocol formatted byte array containing message content. * @param offset The location of the first msg byte within the array. - * @param protocolVersion Bitcoin protocol version. * @param parseLazy Whether to perform a full parse immediately or delay until a read is requested. * @param parseRetain Whether to retain the backing byte array for quick reserialization. * If true and the backing byte array is invalidated due to modification of a field then * the cached bytes may be repopulated and retained if the message is serialized again in the future. - * @param length The length of message if known. Usually this is provided when deserializing of the wire - * as the length will be provided as part of the header. If unknown then set to Message.UNKNOWN_LENGTH * @throws ProtocolException */ public TransactionOutPoint(NetworkParameters params, byte[] payload, int offset, Message parent, boolean parseLazy, boolean parseRetain) throws ProtocolException { @@ -137,7 +133,7 @@ public class TransactionOutPoint extends ChildMessage implements Serializable { @Override public String toString() { - return "outpoint " + index + ":" + hash.toString(); + return "outpoint " + hash.toString() + ":" + index; }