mirror of
https://github.com/monero-project/monero.git
synced 2024-12-23 12:09:54 +00:00
d0a8362b6b
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. |
||
---|---|---|
.. | ||
block_reward.cpp | ||
block_reward.h | ||
block_validation.cpp | ||
block_validation.h | ||
chain_split_1.cpp | ||
chain_split_1.h | ||
chain_switch_1.cpp | ||
chain_switch_1.h | ||
chaingen.cpp | ||
chaingen.h | ||
chaingen001.cpp | ||
chaingen_main.cpp | ||
chaingen_tests_list.h | ||
CMakeLists.txt | ||
double_spend.cpp | ||
double_spend.h | ||
double_spend.inl | ||
integer_overflow.cpp | ||
integer_overflow.h | ||
ring_signature_1.cpp | ||
ring_signature_1.h | ||
transaction_tests.cpp | ||
transaction_tests.h | ||
tx_validation.cpp | ||
tx_validation.h |