mirror of
https://github.com/bisq-network/bisq.git
synced 2025-01-19 05:44:05 +01:00
c261933928
Avoid a bottleneck computing the cycle index & calling 'Res.get(..)' for every block since genesis in the DAO state monitor view, when building the DaoStateBlockListItem objects, by making the 'height' field lazy. To do this, pass the cycle index into the constructor using an IntSupplier and make the height a memoised 'Supplier<String>' with a custom getter. Also add a unit test to check that the auto-generated equals & hashCode methods still work as expected, as it isn't totally clear what Lombok would do when a field type differs from its getter return type. |
||
---|---|---|
.. | ||
package | ||
src |