mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-23 11:23:26 +01: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
@ -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 New Issue
Block a user