diff --git a/core/src/main/java/bisq/core/account/witness/AccountAgeWitnessStorageService.java b/core/src/main/java/bisq/core/account/witness/AccountAgeWitnessStorageService.java index 93ab89b0f9..ad5d7449d1 100644 --- a/core/src/main/java/bisq/core/account/witness/AccountAgeWitnessStorageService.java +++ b/core/src/main/java/bisq/core/account/witness/AccountAgeWitnessStorageService.java @@ -17,9 +17,8 @@ package bisq.core.account.witness; -import bisq.network.p2p.storage.P2PDataStorage; import bisq.network.p2p.storage.payload.PersistableNetworkPayload; -import bisq.network.p2p.storage.persistence.MapStoreService; +import bisq.network.p2p.storage.persistence.HistoricalDataStoreService; import bisq.common.config.Config; import bisq.common.persistence.PersistenceManager; @@ -29,12 +28,10 @@ import javax.inject.Named; import java.io.File; -import java.util.Map; - import lombok.extern.slf4j.Slf4j; @Slf4j -public class AccountAgeWitnessStorageService extends MapStoreService { +public class AccountAgeWitnessStorageService extends HistoricalDataStoreService { private static final String FILE_NAME = "AccountAgeWitnessStore"; @@ -48,23 +45,19 @@ public class AccountAgeWitnessStorageService extends MapStoreService getMap() { - return store.getMap(); + protected void initializePersistenceManager() { + persistenceManager.initialize(store, PersistenceManager.Source.NETWORK); } @Override