aboutsummaryrefslogtreecommitdiff
path: root/external
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-01-31 16:23:54 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-02-05 16:24:23 +0000
commitc7b96b91ed33afc666afed3d960597c3e9628790 (patch)
tree962a8e366a8e6af00029c43634760fd1a4789792 /external
parentMerge pull request #636 (diff)
downloadmonero-c7b96b91ed33afc666afed3d960597c3e9628790.tar.xz
wallet: check a key image isn't already present when adding one
If it is, it points to reuse of a tx key, which isn't meant to happen. If it does, a key image collision means that only one of those outputs is spendable, so the wallet selects the larger amount, unless that output was spent already. This causes a discrepancy betewen reported received inputs and payment total. Since tx keys are 256 bits, this should never happen except if done on purpose, or if a sender uses a bad PRNG.
Diffstat (limited to 'external')
0 files changed, 0 insertions, 0 deletions