mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-22 14:42:37 +01:00
Fix/add comments
This commit is contained in:
parent
f562ffa424
commit
6299411a2f
3 changed files with 8 additions and 6 deletions
|
@ -43,8 +43,11 @@ public class TempTxOutput extends BaseTxOutput {
|
|||
}
|
||||
|
||||
private TxOutputType txOutputType;
|
||||
|
||||
// The lockTime is stored in the first output of the LOCKUP tx.
|
||||
// If not set it is -1, 0 is a valid value.
|
||||
private int lockTime;
|
||||
// The unlockBlockHeight is stored in the first output of the UNLOCK tx.
|
||||
private int unlockBlockHeight;
|
||||
|
||||
private TempTxOutput(int index,
|
||||
|
|
|
@ -131,16 +131,12 @@ public final class Tx extends BaseTx implements PersistablePayload {
|
|||
}
|
||||
|
||||
|
||||
/**
|
||||
* The lockTime is stored in the first output of the LOCKUP tx.
|
||||
*/
|
||||
// The lockTime is stored in the first output of the LOCKUP tx.
|
||||
public int getLockTime() {
|
||||
return txOutputs.get(0).getLockTime();
|
||||
}
|
||||
|
||||
/**
|
||||
* The unlockBlockHeight is stored in the first output of the LOCKUP tx.
|
||||
*/
|
||||
// The unlockBlockHeight is stored in the first output of the UNLOCK tx.
|
||||
public int getUnlockBlockHeight() {
|
||||
return txOutputs.get(0).getUnlockBlockHeight();
|
||||
}
|
||||
|
|
|
@ -49,8 +49,11 @@ public class TxOutput extends BaseTxOutput implements PersistablePayload {
|
|||
}
|
||||
|
||||
private final TxOutputType txOutputType;
|
||||
|
||||
// The lockTime is stored in the first output of the LOCKUP tx.
|
||||
// If not set it is -1, 0 is a valid value.
|
||||
private final int lockTime;
|
||||
// The unlockBlockHeight is stored in the first output of the UNLOCK tx.
|
||||
private final int unlockBlockHeight;
|
||||
|
||||
public TxOutput(int index,
|
||||
|
|
Loading…
Add table
Reference in a new issue