diff options
| author | Gavin Andresen <[email protected]> | 2013-05-04 10:15:39 -0700 |
|---|---|---|
| committer | Gavin Andresen <[email protected]> | 2013-05-04 10:15:39 -0700 |
| commit | 33edd0a477f4448be9c6c4949fbff4e53f16cac6 (patch) | |
| tree | 52fce70249d5eff657c7cad299c84beaf85efcfe /src/test/script_P2SH_tests.cpp | |
| parent | Merge pull request #2606 from gavinandresen/threadfix (diff) | |
| parent | Un-hardcode TX_FEE constants (diff) | |
| download | discoin-33edd0a477f4448be9c6c4949fbff4e53f16cac6.tar.xz discoin-33edd0a477f4448be9c6c4949fbff4e53f16cac6.zip | |
Merge pull request #2577 from gavinandresen/fee_bandaid
Treat dust outputs as non-standard, un-hardcode TX_FEE constants
Diffstat (limited to 'src/test/script_P2SH_tests.cpp')
| -rw-r--r-- | src/test/script_P2SH_tests.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/test/script_P2SH_tests.cpp b/src/test/script_P2SH_tests.cpp index 3444726ca..ee0d25a2f 100644 --- a/src/test/script_P2SH_tests.cpp +++ b/src/test/script_P2SH_tests.cpp @@ -78,7 +78,9 @@ BOOST_AUTO_TEST_CASE(sign) for (int i = 0; i < 4; i++) { txFrom.vout[i].scriptPubKey = evalScripts[i]; + txFrom.vout[i].nValue = COIN; txFrom.vout[i+4].scriptPubKey = standardScripts[i]; + txFrom.vout[i+4].nValue = COIN; } BOOST_CHECK(txFrom.IsStandard()); @@ -169,6 +171,7 @@ BOOST_AUTO_TEST_CASE(set) for (int i = 0; i < 4; i++) { txFrom.vout[i].scriptPubKey = outer[i]; + txFrom.vout[i].nValue = CENT; } BOOST_CHECK(txFrom.IsStandard()); @@ -179,7 +182,7 @@ BOOST_AUTO_TEST_CASE(set) txTo[i].vout.resize(1); txTo[i].vin[0].prevout.n = i; txTo[i].vin[0].prevout.hash = txFrom.GetHash(); - txTo[i].vout[0].nValue = 1; + txTo[i].vout[0].nValue = 1*CENT; txTo[i].vout[0].scriptPubKey = inner[i]; BOOST_CHECK_MESSAGE(IsMine(keystore, txFrom.vout[i].scriptPubKey), strprintf("IsMine %d", i)); } |