Set minimum fee to 5000 satoshis and dust limit to 2730 satoshis. This matches Bitcoin Core 0.11.1.

This commit is contained in:
Andreas Schildbach
2015-10-16 16:36:12 +02:00
parent b57a86f9be
commit 8a7aa1ef0d

View File

@@ -88,16 +88,15 @@ public class Transaction extends ChildMessage implements Serializable {
/**
* 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 1000 satoshis.
*/
public static final Coin REFERENCE_DEFAULT_MIN_TX_FEE = Coin.valueOf(1000);
public static final Coin REFERENCE_DEFAULT_MIN_TX_FEE = Coin.valueOf(5000); // satoshis
/**
* 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
* {@link TransactionOutput#getMinNonDustValue(Coin)}. Currently it's 546 satoshis.
* {@link TransactionOutput#getMinNonDustValue(Coin)}.
*/
public static final Coin MIN_NONDUST_OUTPUT = Coin.valueOf(546);
public static final Coin MIN_NONDUST_OUTPUT = Coin.valueOf(2730); // satoshis
// These are serialized in both bitcoin and java serialization.
private long version;