Skip to content

Commit

Permalink
Merge pull request #3305 from mikehearn/fee_drop
Browse files Browse the repository at this point in the history
Drop fees by 10x due to the persistently higher exchange rate.
  • Loading branch information
Jeff Garzik committed Feb 24, 2014
2 parents 05619d7 + 6a4c196 commit beabca2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ class CTxOut
// to spend something, then we consider it dust.
// A typical txout is 34 bytes big, and will
// need a CTxIn of at least 148 bytes to spend,
// so dust is a txout less than 54 uBTC
// (5460 satoshis) with default nMinRelayTxFee
// so dust is a txout less than 546 satoshis
// with default nMinRelayTxFee.
return ((nValue*1000)/(3*((int)GetSerializeSize(SER_DISK,0)+148)) < nMinRelayTxFee);
}

Expand Down
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ unsigned int nCoinCacheSize = 5000;
/** Fees smaller than this (in satoshi) are considered zero fee (for transaction creation) */
int64_t CTransaction::nMinTxFee = 10000; // Override with -mintxfee
/** Fees smaller than this (in satoshi) are considered zero fee (for relaying) */
int64_t CTransaction::nMinRelayTxFee = 10000;
int64_t CTransaction::nMinRelayTxFee = 1000;

static CMedianFilter<int> cPeerBlockCounts(8, 0); // Amount of blocks that other nodes claim to have

Expand Down
4 changes: 2 additions & 2 deletions src/test/transaction_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -271,10 +271,10 @@ BOOST_AUTO_TEST_CASE(test_IsStandard)
string reason;
BOOST_CHECK(IsStandardTx(t, reason));

t.vout[0].nValue = 5011; // dust
t.vout[0].nValue = 501; // dust
BOOST_CHECK(!IsStandardTx(t, reason));

t.vout[0].nValue = 6011; // not dust
t.vout[0].nValue = 601; // not dust
BOOST_CHECK(IsStandardTx(t, reason));

t.vout[0].scriptPubKey = CScript() << OP_1;
Expand Down

2 comments on commit beabca2

@Diapolo
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cozz Does this require changes to GUI coin-control or the comments in which you also work with magic values?

@Diapolo
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.