From beedf4a36354243fdb17110f14f30be60754a17d Mon Sep 17 00:00:00 2001 From: Patrick Lodder Date: Tue, 15 Apr 2014 17:11:21 +0400 Subject: [PATCH] DUST fix for transaction tests DOGE does not have a DUST limit, so the only valid test for us is that a value of 1 should not be marked as dust --- src/test/transaction_tests.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/test/transaction_tests.cpp b/src/test/transaction_tests.cpp index 588c8013c..e30c322cc 100644 --- a/src/test/transaction_tests.cpp +++ b/src/test/transaction_tests.cpp @@ -271,10 +271,12 @@ BOOST_AUTO_TEST_CASE(test_IsStandard) string reason; BOOST_CHECK(IsStandardTx(t, reason)); - t.vout[0].nValue = 501; // dust - BOOST_CHECK(!IsStandardTx(t, reason)); + // disabled, as there is no dust + // t.vout[0].nValue = 501; // dust + // BOOST_CHECK(!IsStandardTx(t, reason)); - t.vout[0].nValue = 601; // not dust + // 1 should pass as not dust + t.vout[0].nValue = 1; // not dust BOOST_CHECK(IsStandardTx(t, reason)); t.vout[0].scriptPubKey = CScript() << OP_1;