diff --git a/core/src/main/java/bisq/core/trade/statistics/TradeStatistics2StorageService.java b/core/src/main/java/bisq/core/trade/statistics/TradeStatistics2StorageService.java index 92f5719d22c..b5a9699e134 100644 --- a/core/src/main/java/bisq/core/trade/statistics/TradeStatistics2StorageService.java +++ b/core/src/main/java/bisq/core/trade/statistics/TradeStatistics2StorageService.java @@ -17,8 +17,9 @@ package bisq.core.trade.statistics; +import bisq.network.p2p.storage.P2PDataStorage; import bisq.network.p2p.storage.payload.PersistableNetworkPayload; -import bisq.network.p2p.storage.persistence.HistoricalDataStoreService; +import bisq.network.p2p.storage.persistence.MapStoreService; import bisq.common.config.Config; import bisq.common.storage.Storage; @@ -28,10 +29,12 @@ import java.io.File; +import java.util.Map; + import lombok.extern.slf4j.Slf4j; @Slf4j -public class TradeStatistics2StorageService extends HistoricalDataStoreService { +public class TradeStatistics2StorageService extends MapStoreService { private static final String FILE_NAME = "TradeStatistics2Store"; @@ -55,6 +58,15 @@ public String getFileName() { return FILE_NAME; } + @Override + public Map getMap() { + return store.getMap(); + } + + public Map getMapOfAllData() { + return getMap(); + } + @Override public boolean canHandle(PersistableNetworkPayload payload) { return payload instanceof TradeStatistics2;