aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorShen Noether <Shen.Noether@gmx.com>2016-08-08 12:54:00 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-08-28 21:30:12 +0100
commitc5be4b0beaaa7a703d4e2b84aa9f3c727bf992df (patch)
tree2f67cca38b750f77681ce1687304c00ecca548b2 /tests
parentwallet: do not store signatures in the wallet cache (diff)
downloadmonero-c5be4b0beaaa7a703d4e2b84aa9f3c727bf992df.tar.xz
rct: avoid the need for the last II element
This element is used in the generation of the MLSAG, but isn't needed in verification. Also misc changes in the cryptonote code to match, by mooo.
Diffstat (limited to 'tests')
-rw-r--r--tests/unit_tests/serialization.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/unit_tests/serialization.cpp b/tests/unit_tests/serialization.cpp
index 0da23c0d2..9311ca016 100644
--- a/tests/unit_tests/serialization.cpp
+++ b/tests/unit_tests/serialization.cpp
@@ -582,8 +582,7 @@ TEST(Serialization, serializes_ringct_types)
ASSERT_TRUE(mg0.cc == mg1.cc);
// mixRing and II are not serialized, they are meant to be reconstructed
- ASSERT_TRUE(mg1.II.size() == 1);
- ASSERT_TRUE(mg1.II[0] == mg0.II.back());
+ ASSERT_TRUE(mg1.II.empty());
rg0 = s0.rangeSigs.front();
ASSERT_TRUE(serialization::dump_binary(rg0, blob));
@@ -605,8 +604,7 @@ TEST(Serialization, serializes_ringct_types)
}
ASSERT_TRUE(s0.MG.cc == s1.MG.cc);
// mixRing and II are not serialized, they are meant to be reconstructed
- ASSERT_TRUE(s1.MG.II.size() == 1);
- ASSERT_TRUE(s1.MG.II[0] == s0.MG.II.back());
+ ASSERT_TRUE(s1.MGs[0].II.empty());
// mixRing and II are not serialized, they are meant to be reconstructed
ASSERT_TRUE(s1.mixRing.size() == 0);