From 8635d5dd3ee1f97e8b578bb4eab126667f37fc69 Mon Sep 17 00:00:00 2001 From: fuwa Date: Fri, 14 Jun 2019 16:42:53 +0800 Subject: [PATCH] hotfix "no ring" error --- src/wallet/wallet2.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index 20b9426cf..9c08708e4 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -3471,7 +3471,7 @@ bool wallet2::get_rct_distribution(uint64_t &start_height, std::vector cryptonote::COMMAND_RPC_GET_OUTPUT_DISTRIBUTION::response res = AUTO_VAL_INIT(res); req.amounts.push_back(0); req.from_height = 0; - req.cumulative = false; + req.cumulative = true; req.binary = true; req.compress = true; @@ -3499,8 +3499,8 @@ bool wallet2::get_rct_distribution(uint64_t &start_height, std::vector MWARNING("Failed to request output distribution: results are not for amount 0"); return false; } - for (size_t i = 1; i < res.distributions[0].data.distribution.size(); ++i) - res.distributions[0].data.distribution[i] += res.distributions[0].data.distribution[i-1]; + // for (size_t i = 1; i < res.distributions[0].data.distribution.size(); ++i) + // res.distributions[0].data.distribution[i] += res.distributions[0].data.distribution[i-1]; start_height = res.distributions[0].data.start_height; distribution = std::move(res.distributions[0].data.distribution); return true;