Skip to content

Commit

Permalink
Set minimum fee to 5000 satoshis and dust limit to 2730 satoshis. Thi…
Browse files Browse the repository at this point in the history
…s matches Bitcoin Core 0.11.1.
  • Loading branch information
schildbach committed Dec 13, 2015
1 parent 0ba3f4c commit 6692c0e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions core/src/main/java/org/bitcoinj/core/Transaction.java
Original file line number Diff line number Diff line change
Expand Up @@ -91,16 +91,15 @@ public int compare(final Transaction tx1, final Transaction tx2) {

/**
* If fee is lower than this value (in satoshis), Bitcoin Core 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 bitcoin serialized.
private long version;
Expand Down

0 comments on commit 6692c0e

Please sign in to comment.