Skip to content

Commit a649784

Browse files
committed
Changed MIN_TX_FEE to 1DOG, changed others to 100x
1 parent dc54dff commit a649784

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

src/init.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ bool AppInit2()
415415
{
416416
if (!ParseMoney(mapArgs["-paytxfee"], nTransactionFee))
417417
return InitError(strprintf(_("Invalid amount for -paytxfee=<amount>: '%s'"), mapArgs["-paytxfee"].c_str()));
418-
if (nTransactionFee > 0.25 * COIN)
418+
if (nTransactionFee > 25.0 * COIN)
419419
InitWarning(_("Warning: -paytxfee is set very high. This is the transaction fee you will pay if you send a transaction."));
420420
}
421421

src/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ int64 nHPSTimerStart;
6161

6262
// Settings
6363
int64 nTransactionFee = 0;
64-
int64 nMinimumInputValue = CENT / 100;
64+
int64 nMinimumInputValue = CENT;
6565

6666

6767

src/main.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ static const unsigned int MAX_BLOCK_SIZE = 1000000;
3131
static const unsigned int MAX_BLOCK_SIZE_GEN = MAX_BLOCK_SIZE/2;
3232
static const unsigned int MAX_BLOCK_SIGOPS = MAX_BLOCK_SIZE/50;
3333
static const unsigned int MAX_ORPHAN_TRANSACTIONS = MAX_BLOCK_SIZE/100;
34-
static const int64 MIN_TX_FEE = 10000;
34+
static const int64 MIN_TX_FEE = 100000000;
3535
static const int64 MIN_RELAY_TX_FEE = MIN_TX_FEE;
3636
static const int64 MAX_MONEY = 500000000 * COIN; // DogeCoin: maximum of 100B coins (given some randomness), max transaction 500,000,000 for now
3737
inline bool MoneyRange(int64 nValue) { return (nValue >= 0 && nValue <= MAX_MONEY); }
@@ -540,7 +540,7 @@ class CTransaction
540540
{
541541
// Large (in bytes) low-priority (new, small-coin) transactions
542542
// need a fee.
543-
return dPriority > COIN * 1440 / 250; // DogeCoin: 1440 blocks found a day. Priority cutoff is 1 dogecoin day / 250 bytes.
543+
return dPriority > 100 * COIN * 1440 / 250; // DogeCoin: 1440 blocks found a day. Priority cutoff is 100 dogecoin day / 250 bytes.
544544
}
545545

546546
int64 GetMinFee(unsigned int nBlockSize=1, bool fAllowFree=true, enum GetMinFee_mode mode=GMF_BLOCK) const
@@ -569,9 +569,9 @@ class CTransaction
569569
}
570570
}
571571

572-
// To limit dust spam, add MIN_TX_FEE/MIN_RELAY_TX_FEE for any output that is less than 0.01
572+
// To limit dust spam, add MIN_TX_FEE/MIN_RELAY_TX_FEE for any output that is less than 1.00
573573
BOOST_FOREACH(const CTxOut& txout, vout)
574-
if (txout.nValue < CENT)
574+
if (txout.nValue < COIN)
575575
nMinFee += nBaseFee;
576576

577577
// Raise the price as the block approaches full

src/wallet.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1125,7 +1125,7 @@ bool CWallet::CreateTransaction(const vector<pair<CScript, int64> >& vecSend, CW
11251125
// if sub-cent change is required, the fee must be raised to at least MIN_TX_FEE
11261126
// or until nChange becomes zero
11271127
// NOTE: this depends on the exact behaviour of GetMinFee
1128-
if (nFeeRet < MIN_TX_FEE && nChange > 0 && nChange < CENT)
1128+
if (nFeeRet < MIN_TX_FEE && nChange > 0 && nChange < COIN)
11291129
{
11301130
int64 nMoveToFee = min(nChange, MIN_TX_FEE - nFeeRet);
11311131
nChange -= nMoveToFee;

0 commit comments

Comments
 (0)