mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-07-31 20:11:23 +00:00
Transaction: Lower REFERENCE_DEFAULT_MIN_TX_FEE to 1000 and MIN_NONDUST_OUTPUT to 546.
These limits are still a thing these days both for relaying and mining transactions.
This commit is contained in:
@@ -102,7 +102,7 @@ public class Transaction extends ChildMessage {
|
||||
/**
|
||||
* If feePerKb is lower than this, Bitcoin Core will treat it as if there were no fee.
|
||||
*/
|
||||
public static final Coin REFERENCE_DEFAULT_MIN_TX_FEE = Coin.valueOf(5000); // 0.05 mBTC
|
||||
public static final Coin REFERENCE_DEFAULT_MIN_TX_FEE = Coin.valueOf(1000); // 0.01 mBTC
|
||||
|
||||
/**
|
||||
* If using this feePerKb, transactions will get confirmed within the next couple of blocks.
|
||||
@@ -115,7 +115,7 @@ public class Transaction extends ChildMessage {
|
||||
* This is calculated by assuming a standard output will be 34 bytes, and then using the formula used in
|
||||
* {@link TransactionOutput#getMinNonDustValue(Coin)}.
|
||||
*/
|
||||
public static final Coin MIN_NONDUST_OUTPUT = Coin.valueOf(2730); // satoshis
|
||||
public static final Coin MIN_NONDUST_OUTPUT = Coin.valueOf(546); // satoshis
|
||||
|
||||
// These are bitcoin serialized.
|
||||
private long version;
|
||||
|
@@ -2747,7 +2747,7 @@ public class WalletTest extends TestWithWallet {
|
||||
|
||||
@Test
|
||||
public void lowerThanDefaultFee() throws InsufficientMoneyException {
|
||||
int feeFactor = 10;
|
||||
int feeFactor = 50;
|
||||
Coin fee = Transaction.DEFAULT_TX_FEE.divide(feeFactor);
|
||||
receiveATransactionAmount(wallet, myAddress, Coin.COIN);
|
||||
SendRequest req = SendRequest.to(myAddress, Coin.CENT);
|
||||
|
Reference in New Issue
Block a user