diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-07-10 12:57:22 +0100 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-08-28 21:29:20 +0100 |
commit | a4d4d6194bf9a0826806521d72a7fec5e506a677 (patch) | |
tree | cff98fea187e5eaf765851e31e691e3f4f58f73f /src/cryptonote_core/cryptonote_basic.h | |
parent | serialization: add override for serializing bool (diff) | |
download | monero-a4d4d6194bf9a0826806521d72a7fec5e506a677.tar.xz |
integrate simple rct api
Diffstat (limited to 'src/cryptonote_core/cryptonote_basic.h')
-rw-r--r-- | src/cryptonote_core/cryptonote_basic.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/cryptonote_core/cryptonote_basic.h b/src/cryptonote_core/cryptonote_basic.h index 91bcef8c5..afe785eb9 100644 --- a/src/cryptonote_core/cryptonote_basic.h +++ b/src/cryptonote_core/cryptonote_basic.h @@ -231,11 +231,19 @@ namespace cryptonote else { FIELD(rct_signatures) - for (size_t i = 0; i < rct_signatures.mixRing.size(); ++i) + if (rct_signatures.simple) { - if (rct_signatures.mixRing[i].size() != vin.size()) + if (rct_signatures.mixRing.size() && rct_signatures.mixRing.size() != vin.size()) return false; } + else + { + for (size_t i = 0; i < rct_signatures.mixRing.size(); ++i) + { + if (rct_signatures.mixRing[i].size() != vin.size()) + return false; + } + } } END_SERIALIZE() |