aboutsummaryrefslogtreecommitdiff
path: root/tests/core_tests/tx_validation.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2015-12-25 22:23:36 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2015-12-25 22:23:36 +0000
commitd0a8362b6bceeb9f99ee29360c84ce49db9904d1 (patch)
tree32c2ac1bb4e2c3f3dd89d32acc9bb286d3fcdf2d /tests/core_tests/tx_validation.cpp
parenttests: use 255 as a "too high" block version (diff)
downloadmonero-d0a8362b6bceeb9f99ee29360c84ce49db9904d1.tar.xz
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.
Diffstat (limited to 'tests/core_tests/tx_validation.cpp')
0 files changed, 0 insertions, 0 deletions