monero/tests/core_tests
moneromooo-monero d0a8362b6b
tests: fix some double spending tests
Some tests assume the first output in a transaction goes to the recipient.
However, it can be the change. When it is, the recipient's keys will not
recognize this output. To fix this, we send all we have, to ensure there
is no change, and the first output goes to the recipient.

I'm not sure why this worked with Cryptonote. The tests sent 17 coins,
which seems way smaller than the first Bytecoin block reward, so there
would have been change too. Maybe outputs were not shuffled originally.
2015-12-25 22:23:36 +00:00
..
block_reward.cpp year updated in license 2015-01-02 18:52:46 +02:00
block_reward.h year updated in license 2015-01-02 18:52:46 +02:00
block_validation.cpp tests: use 255 as a "too high" block version 2015-12-25 22:22:12 +00:00
block_validation.h year updated in license 2015-01-02 18:52:46 +02:00
chain_split_1.cpp year updated in license 2015-01-02 18:52:46 +02:00
chain_split_1.h year updated in license 2015-01-02 18:52:46 +02:00
chain_switch_1.cpp year updated in license 2015-01-02 18:52:46 +02:00
chain_switch_1.h year updated in license 2015-01-02 18:52:46 +02:00
chaingen.cpp Adjust difficulty target (2 min) and full reward zone (60 kbytes) for block version 2 2015-11-13 00:30:45 -08:00
chaingen.h core_tests: bump default test fee to 0.02 monero 2015-12-13 13:56:15 +00:00
chaingen001.cpp year updated in license 2015-01-02 18:52:46 +02:00
chaingen_main.cpp 2014 network limit 1.3 fix log/path/data +utils 2015-02-24 20:12:56 +01:00
chaingen_tests_list.h year updated in license 2015-01-02 18:52:46 +02:00
CMakeLists.txt 2014 network limit 1.3 fix log/path/data +utils 2015-02-24 20:12:56 +01:00
double_spend.cpp year updated in license 2015-01-02 18:52:46 +02:00
double_spend.h tests: fix some double spending tests 2015-12-25 22:23:36 +00:00
double_spend.inl year updated in license 2015-01-02 18:52:46 +02:00
integer_overflow.cpp year updated in license 2015-01-02 18:52:46 +02:00
integer_overflow.h year updated in license 2015-01-02 18:52:46 +02:00
ring_signature_1.cpp core_tests: fix ring_signature_1 tests 2015-12-13 13:58:13 +00:00
ring_signature_1.h year updated in license 2015-01-02 18:52:46 +02:00
transaction_tests.cpp year updated in license 2015-01-02 18:52:46 +02:00
transaction_tests.h year updated in license 2015-01-02 18:52:46 +02:00
tx_validation.cpp year updated in license 2015-01-02 18:52:46 +02:00
tx_validation.h year updated in license 2015-01-02 18:52:46 +02:00