aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorPatrick Lodder <[email protected]>2020-07-20 18:14:13 +0200
committerPatrick Lodder <[email protected]>2020-07-22 13:44:44 +0200
commit7626b811a74d5d0fb5fe95d7afa812cdba016804 (patch)
tree55a1ed9cd17c064b4fd046b41ce63947821dcf2c /src/test
parenttravis: fix warnings about sudo and env/matrix (diff)
downloaddiscoin-7626b811a74d5d0fb5fe95d7afa812cdba016804.tar.xz
discoin-7626b811a74d5d0fb5fe95d7afa812cdba016804.zip
tests: fix non-qt tests that spend dust
- transaction_tests/IsStandard was spending 0.9 DOGE - tx_validationcache_tests/mempool_dblspend was spending 0.11 DOGE - wallet_tests/coin_selection was completely built around spending cents. This test has been completely reworked and redocumented to make sense for Dogecoin
Diffstat (limited to 'src/test')
-rw-r--r--src/test/transaction_tests.cpp2
-rw-r--r--src/test/txvalidationcache_tests.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/test/transaction_tests.cpp b/src/test/transaction_tests.cpp
index e4fa56100..9124c2ff3 100644
--- a/src/test/transaction_tests.cpp
+++ b/src/test/transaction_tests.cpp
@@ -681,7 +681,7 @@ BOOST_AUTO_TEST_CASE(test_IsStandard)
t.vin[0].prevout.n = 1;
t.vin[0].scriptSig << std::vector<unsigned char>(65, 0);
t.vout.resize(1);
- t.vout[0].nValue = 90*CENT;
+ t.vout[0].nValue = COIN;
CKey key;
key.MakeNewKey(true);
t.vout[0].scriptPubKey = GetScriptForDestination(key.GetPubKey().GetID());
diff --git a/src/test/txvalidationcache_tests.cpp b/src/test/txvalidationcache_tests.cpp
index a4d1c8f73..64f2782ad 100644
--- a/src/test/txvalidationcache_tests.cpp
+++ b/src/test/txvalidationcache_tests.cpp
@@ -44,7 +44,7 @@ BOOST_FIXTURE_TEST_CASE(tx_mempool_block_doublespend, TestChain240Setup)
spends[i].vin[0].prevout.hash = coinbaseTxns[0].GetHash();
spends[i].vin[0].prevout.n = 0;
spends[i].vout.resize(1);
- spends[i].vout[0].nValue = 11*CENT;
+ spends[i].vout[0].nValue = COIN;
spends[i].vout[0].scriptPubKey = scriptPubKey;
// Sign: