get rid of dust transactions for now

This commit is contained in:
Jimmy Kiselak 2016-02-18 18:29:46 -05:00
parent 7d14e09e5d
commit a6984a9d72
2 changed files with 4 additions and 3 deletions

View file

@ -151,7 +151,8 @@ public:
bool IsDust(const CFeeRate &minRelayTxFee) const
{
return (nValue < GetDustThreshold(minRelayTxFee));
return false;
// return (nValue < GetDustThreshold(minRelayTxFee));
}
friend bool operator==(const CTxOut& a, const CTxOut& b)

View file

@ -339,8 +339,8 @@ BOOST_AUTO_TEST_CASE(test_IsStandard)
string reason;
BOOST_CHECK(IsStandardTx(t, reason));
t.vout[0].nValue = 501; // dust
BOOST_CHECK(!IsStandardTx(t, reason));
//t.vout[0].nValue = 501; // dust
//BOOST_CHECK(!IsStandardTx(t, reason));
t.vout[0].nValue = 601; // not dust
BOOST_CHECK(IsStandardTx(t, reason));