Fix duplicateDetached

This commit is contained in:
Mike Hearn 2014-08-12 16:32:52 +02:00
parent a30cdfed0c
commit 4a9295ccde

View file

@ -99,10 +99,9 @@ public class TransactionInput extends ChildMessage implements Serializable {
/**
* Deserializes an input message. This is usually part of a transaction message.
*/
public TransactionInput(NetworkParameters params, Transaction parentTransaction,
byte[] payload, int offset) throws ProtocolException {
public TransactionInput(NetworkParameters params, @Nullable Transaction parentTransaction, byte[] payload, int offset) throws ProtocolException {
super(params, payload, offset);
setParent(checkNotNull(parentTransaction));
setParent(parentTransaction);
this.value = null;
}