[bisq-network/bisq-p2p] Sync up with changes from voting branch (#15)

Manfred Karrer notifications at github.com
Mon Jul 9 23:27:29 UTC 2018


ManfredKarrer commented on this pull request.



> +    @Inject
+    public AppendOnlyDataStoreService(PersistableNetworkPayloadListService persistableNetworkPayloadListService) {
+        this.persistableNetworkPayloadListService = persistableNetworkPayloadListService;
+    }
+
+    public void addService(StoreService<? extends PersistableEnvelope, PersistableNetworkPayload> service) {
+        services.add(service);
+    }
+
+    public void readFromResources(String postFix) {
+        services.forEach(service -> service.readFromResources(postFix));
+
+        transferDeprecatedDataStructure();
+    }
+
+    private void transferDeprecatedDataStructure() {

That users request all persisted data (account witness and trade statsistics) from seed node once after update. If it works at intended (and tested) the old map is used to be converted to the new data objects and then the old gets deleted.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/bisq-network/bisq-p2p/pull/15#discussion_r201178182
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20180709/b1ca36aa/attachment.html>


More information about the bisq-github mailing list