mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-02-14 19:25:51 +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:
parent
04f9de20d4
commit
e5ec3a6a95
@ -105,7 +105,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.
|
||||
@ -118,7 +118,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;
|
||||
|
@ -2690,7 +2690,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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user