From c786fb5a135c62a1ce985d9de9274420f61e0520 Mon Sep 17 00:00:00 2001 From: fuwa Date: Fri, 21 Dec 2018 15:40:50 +0800 Subject: [PATCH] remove V.clear, fix: https://github.com/wownero/wownero/commit/389d2bc53ea0f6ffe16b9789bc786e494411673e#r31751630 --- src/cryptonote_basic/cryptonote_format_utils.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/cryptonote_basic/cryptonote_format_utils.cpp b/src/cryptonote_basic/cryptonote_format_utils.cpp index d6ae71b1b..9dc77c05c 100644 --- a/src/cryptonote_basic/cryptonote_format_utils.cpp +++ b/src/cryptonote_basic/cryptonote_format_utils.cpp @@ -186,7 +186,6 @@ namespace cryptonote const size_t n_amounts = rct::n_bulletproof_v1_amounts(rv.p.bulletproofs[n]); CHECK_AND_ASSERT_MES(idx + n_amounts <= rv.outPk.size(), false, "Internal error filling out V"); rv.p.bulletproofs[n].V.resize(n_amounts); - rv.p.bulletproofs[n].V.clear(); for (size_t i = 0; i < n_amounts; ++i) rv.p.bulletproofs[n].V[i] = rv.outPk[idx++].mask; }