Skip to content

Commit

Permalink
Drop fees and minNonDustValue by 10x.
Browse files Browse the repository at this point in the history
Also see related Bitcoin Core pull request: bitcoin/bitcoin#3305
  • Loading branch information
schildbach committed Mar 4, 2014
1 parent e0153a9 commit 3b969de
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions core/src/main/java/com/google/bitcoin/core/Transaction.java
Expand Up @@ -82,16 +82,16 @@ public int compare(final Transaction tx1, final Transaction tx2) {

/**
* 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.
* Currently this is 1000 satoshis.
*/
public static final BigInteger REFERENCE_DEFAULT_MIN_TX_FEE = BigInteger.valueOf(10000);
public static final BigInteger REFERENCE_DEFAULT_MIN_TX_FEE = BigInteger.valueOf(1000);

/**
* 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(BigInteger)}. Currently it's 5460 satoshis.
* {@link TransactionOutput#getMinNonDustValue(BigInteger)}. Currently it's 546 satoshis.
*/
public static final BigInteger MIN_NONDUST_OUTPUT = BigInteger.valueOf(5460);
public static final BigInteger MIN_NONDUST_OUTPUT = BigInteger.valueOf(546);

// These are serialized in both bitcoin and java serialization.
private long version;
Expand Down
Expand Up @@ -209,7 +209,7 @@ public BigInteger getMinNonDustValue(BigInteger feePerKbRequired) {

/**
* Returns the minimum value for this output to be considered "not dust", i.e. the transaction will be relayable
* and mined by default miners. For normal pay to address outputs, this is 5460 satoshis, the same as
* and mined by default miners. For normal pay to address outputs, this is 546 satoshis, the same as
* {@link Transaction#MIN_NONDUST_OUTPUT}.
*/
public BigInteger getMinNonDustValue() {
Expand Down

0 comments on commit 3b969de

Please sign in to comment.