Fix/add comments

This commit is contained in:
Manfred Karrer 2018-10-04 18:15:00 -05:00
parent f562ffa424
commit 6299411a2f
No known key found for this signature in database
GPG key ID: 401250966A6B2C46
3 changed files with 8 additions and 6 deletions

View file

@ -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,

View file

@ -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();
}

View file

@ -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,