db_lmdb: do not use base for cumulative distribution

it's confusing and needlessly complicated
release-v0.5.1
moneromooo-monero 6 years ago
parent e6d36c1701
commit befdcbf4be
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3

@ -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();

Loading…
Cancel
Save