diff --git a/core/src/test/java/org/bitcoinj/core/FullBlockTestGenerator.java b/core/src/test/java/org/bitcoinj/core/FullBlockTestGenerator.java index 47084e133..f6b384848 100644 --- a/core/src/test/java/org/bitcoinj/core/FullBlockTestGenerator.java +++ b/core/src/test/java/org/bitcoinj/core/FullBlockTestGenerator.java @@ -125,9 +125,9 @@ class TransactionOutPointWithValue { this.scriptPubKey = scriptPubKey; } - public TransactionOutPointWithValue(Transaction tx, int output) { - this(new TransactionOutPoint(output, tx.getTxId()), - tx.getOutput(output).getValue(), tx.getOutput(output).getScriptPubKey()); + public TransactionOutPointWithValue(Transaction tx, int outputIndex) { + this(new TransactionOutPoint(outputIndex, tx.getTxId()), + tx.getOutput(outputIndex).getValue(), tx.getOutput(outputIndex).getScriptPubKey()); } }