Skip to content

Commit

Permalink
Use java doc at constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
chimp1984 committed Dec 27, 2020
1 parent 0c792a2 commit 62ca826
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions core/src/main/java/bisq/core/btc/model/RawTransactionInput.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,19 @@

import javax.annotation.concurrent.Immutable;

/**
* Holds the relevant data for the connected output for a tx input.
* ParentTransaction means here the spending tx, the tx of the output not the parentTransaction of the input itself.
* Also index refers to the index of the spending output
*/
@EqualsAndHashCode
@Immutable
public final class RawTransactionInput implements NetworkPayload, PersistablePayload {
public final long index; // Index of spending txo
public final byte[] parentTransaction; // Spending tx (fromTx)
public final long value;

/**
* Holds the relevant data for the connected output for a tx input.
* @param index the index of the parentTransaction
* @param parentTransaction the spending output tx, not the parent tx of the input
* @param value the number of satoshis being spent
*/
public RawTransactionInput(long index, byte[] parentTransaction, long value) {
this.index = index;
this.parentTransaction = parentTransaction;
Expand Down

0 comments on commit 62ca826

Please sign in to comment.