Merge pull request #470 from patricklodder/1.7-dev-tx_test_dust

transaction tests: fix dust test.
This commit is contained in:
langerhans 2014-04-15 20:16:36 +02:00
commit 82097b12d4

View file

@ -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;