mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-22 23:42:24 +00:00
db_lmdb: do not use base for cumulative distribution
it's confusing and needlessly complicated
This commit is contained in:
parent
e6d36c1701
commit
befdcbf4be
1 changed files with 2 additions and 0 deletions
|
@ -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…
Reference in a new issue