db_lmdb: do not use base for cumulative distribution

it's confusing and needlessly complicated
This commit is contained in:
moneromooo-monero 2018-09-12 19:18:26 +00:00
parent e6d36c1701
commit befdcbf4be
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3
1 changed files with 2 additions and 0 deletions

View File

@ -3391,8 +3391,10 @@ bool BlockchainLMDB::get_output_distribution(uint64_t amount, uint64_t from_heig
break;
}
distribution[0] += base;
for (size_t n = 1; n < distribution.size(); ++n)
distribution[n] += distribution[n - 1];
base = 0;
TXN_POSTFIX_RDONLY();