Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions core/src/main/java/org/bitcoinj/core/Transaction.java
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,11 @@ private static int sortableBlockHeight(Transaction tx) {
*/
public static final Coin REFERENCE_DEFAULT_MIN_TX_FEE = Coin.valueOf(1_000); // 0.01 mBTC

/**
* Minimum feerate for defining dust, in sats per kB.
*/
public static final Coin DUST_RELAY_TX_FEE_RATE = Coin.valueOf(3_000); // per kB

/**
* If using this feePerKb, transactions will get confirmed within the next couple of blocks.
* This should be adjusted from time to time. Last adjustment: February 2017.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ else if (ScriptPattern.isP2WH(script))
* and mined by default miners.
*/
public Coin getMinNonDustValue() {
return getMinNonDustValue(Transaction.REFERENCE_DEFAULT_MIN_TX_FEE.multiply(3));
return getMinNonDustValue(Transaction.DUST_RELAY_TX_FEE_RATE);
}

/**
Expand Down
Loading