diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-07-23 12:09:33 +0100 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2016-08-28 21:29:43 +0100 |
commit | cf33e1a52a0cf20a7cec619d85d68f000b2e1f40 (patch) | |
tree | f8230d6384ea0b6a3422a3f64cbc76880732052e /tests/unit_tests | |
parent | wallet2_api: zero amounts are now allowed with rct (diff) | |
download | monero-cf33e1a52a0cf20a7cec619d85d68f000b2e1f40.tar.xz |
rct: do not serialize public keys in outPk
They can be reconstructed from vout
Diffstat (limited to 'tests/unit_tests')
-rw-r--r-- | tests/unit_tests/serialization.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/unit_tests/serialization.cpp b/tests/unit_tests/serialization.cpp index 88e67bd73..380c2140f 100644 --- a/tests/unit_tests/serialization.cpp +++ b/tests/unit_tests/serialization.cpp @@ -615,7 +615,8 @@ TEST(Serialization, serializes_ringct_types) ASSERT_TRUE(s0.outPk.size() == s1.outPk.size()); for (size_t n = 0; n < s0.outPk.size(); ++n) { - ASSERT_TRUE(!memcmp(&s0.outPk[n], &s1.outPk[n], sizeof(s0.outPk[n]))); + // serialization only does the mask + ASSERT_TRUE(!memcmp(&s0.outPk[n].mask, &s1.outPk[n].mask, sizeof(s0.outPk[n].mask))); } tx0.set_null(); |