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;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
distribution[0] += base;
|
||||||
for (size_t n = 1; n < distribution.size(); ++n)
|
for (size_t n = 1; n < distribution.size(); ++n)
|
||||||
distribution[n] += distribution[n - 1];
|
distribution[n] += distribution[n - 1];
|
||||||
|
base = 0;
|
||||||
|
|
||||||
TXN_POSTFIX_RDONLY();
|
TXN_POSTFIX_RDONLY();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue