mirror of
https://github.com/dogecoin/dogecoin.git
synced 2026-03-04 18:16:02 +00:00
Merge pull request #470 from patricklodder/1.7-dev-tx_test_dust
transaction tests: fix dust test.
This commit is contained in:
commit
82097b12d4
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user