aboutsummaryrefslogtreecommitdiff
path: root/src
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 /src
parent2358d0d5be34f8dca0c14f94979300ed49e3f29f (diff)
downloadmonzero-core-d0a8362b6bceeb9f99ee29360c84ce49db9904d1.tar.gz
monzero-core-d0a8362b6bceeb9f99ee29360c84ce49db9904d1.tar.xz
monzero-core-d0a8362b6bceeb9f99ee29360c84ce49db9904d1.zip
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 'src')
0 files changed, 0 insertions, 0 deletions