3
0
mirror of https://github.com/Qortal/altcoinj.git synced 2025-01-31 23:32:16 +00:00

Transaction: add a bit more info to constant field javadocs.

This commit is contained in:
Mike Hearn 2013-07-29 12:50:02 +02:00
parent 630b36c5c8
commit 86f68c8ffa

View File

@ -55,23 +55,25 @@ public class Transaction extends ChildMessage implements Serializable {
/** Threshold for lockTime: below this value it is interpreted as block number, otherwise as timestamp. **/ /** Threshold for lockTime: below this value it is interpreted as block number, otherwise as timestamp. **/
public static final int LOCKTIME_THRESHOLD = 500000000; // Tue Nov 5 00:53:20 1985 UTC public static final int LOCKTIME_THRESHOLD = 500000000; // Tue Nov 5 00:53:20 1985 UTC
/** How many bytes a transaction can be before it won't be relayed anymore. */ /** How many bytes a transaction can be before it won't be relayed anymore. Currently 100kb. */
public static final int MAX_STANDARD_TX_SIZE = 100 * 1024; public static final int MAX_STANDARD_TX_SIZE = 100 * 1024;
/** If fee is lower than this value (in satoshis), a default reference client will treat it as if there were no fee */ /**
* If fee is lower than this value (in satoshis), a default reference client will treat it as if there were no fee.
* Currently this is 10000 satoshis.
*/
public static final BigInteger REFERENCE_DEFAULT_MIN_TX_FEE = BigInteger.valueOf(10000); public static final BigInteger REFERENCE_DEFAULT_MIN_TX_FEE = BigInteger.valueOf(10000);
/** /**
* Any standard (ie pay-to-address) output smaller than this value (in satoshis) will most likely be rejected by the network. * Any standard (ie pay-to-address) output smaller than this value (in satoshis) will most likely be rejected by the network.
* This is calculated by assuming a standard output will be 34 bytes, and then using the formula used in * This is calculated by assuming a standard output will be 34 bytes, and then using the formula used in
* {@link TransactionOutput#getMinNonDustValue(BigInteger)}. * {@link TransactionOutput#getMinNonDustValue(BigInteger)}. Currently it's 5460 satoshis.
*/ */
public static final BigInteger MIN_NONDUST_OUTPUT = BigInteger.valueOf(5460); public static final BigInteger MIN_NONDUST_OUTPUT = BigInteger.valueOf(5460);
// These are serialized in both bitcoin and java serialization. // These are serialized in both bitcoin and java serialization.
private long version; private long version;
private ArrayList<TransactionInput> inputs; private ArrayList<TransactionInput> inputs;
private ArrayList<TransactionOutput> outputs; private ArrayList<TransactionOutput> outputs;
private long lockTime; private long lockTime;