diff options
author | Fabian Jahr <fjahr@protonmail.com> | 2021-02-25 19:09:12 +0100 |
---|---|---|
committer | Fabian Jahr <fjahr@protonmail.com> | 2021-04-19 20:28:46 +0200 |
commit | 2e2648a9021dfbb6e17dfa81472f057dacbc34e0 (patch) | |
tree | d1596c1afc1bf66d07402277c2ff6b2dbcebb6e7 /src/test/policy_fee_tests.cpp | |
parent | 13d27b452d4b60010c54d4f80757dea9805076be (diff) |
crypto: Make MuHash Remove method efficient
Division of MuHash objects are very expensive and multiplication relatively cheap. The whole idea of introducing and tracking numerator and denominators seperately as a representation of the internal state was so that divisions would be rare. So using divison in the Remove method did not make any sense and was just a silly mistake which is corrected here.
Diffstat (limited to 'src/test/policy_fee_tests.cpp')
0 files changed, 0 insertions, 0 deletions