diff options
| author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-01-31 16:23:54 +0000 |
|---|---|---|
| committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-02-05 16:24:23 +0000 |
| commit | c7b96b91ed33afc666afed3d960597c3e9628790 (patch) | |
| tree | 962a8e366a8e6af00029c43634760fd1a4789792 /src/common/command_line.cpp | |
| parent | 5feebb4d87ec9c53b9482ef388b56f78b1dabab5 (diff) | |
| download | monzero-core-c7b96b91ed33afc666afed3d960597c3e9628790.tar.gz monzero-core-c7b96b91ed33afc666afed3d960597c3e9628790.tar.xz monzero-core-c7b96b91ed33afc666afed3d960597c3e9628790.zip | |
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 'src/common/command_line.cpp')
0 files changed, 0 insertions, 0 deletions
