From a6984a9d72f9231ff850050b0193342a1ce8c043 Mon Sep 17 00:00:00 2001 From: Jimmy Kiselak Date: Thu, 18 Feb 2016 18:29:46 -0500 Subject: [PATCH] get rid of dust transactions for now --- src/primitives/transaction.h | 3 ++- src/test/transaction_tests.cpp | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/primitives/transaction.h b/src/primitives/transaction.h index 6cfd93a9a..98d38f0b0 100644 --- a/src/primitives/transaction.h +++ b/src/primitives/transaction.h @@ -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) diff --git a/src/test/transaction_tests.cpp b/src/test/transaction_tests.cpp index 5ce7b7b68..aadce44f7 100644 --- a/src/test/transaction_tests.cpp +++ b/src/test/transaction_tests.cpp @@ -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));