[bisq-network/bisq] Avoid resync from genesis in case of dao state issues (#4971)

chimp1984 notifications at github.com
Sat Dec 19 02:56:50 CET 2020


In case a reset of the dao state was triggered we delete now all dao store files and request a shut down of the app.

After a restart the resource files are used. This avoids cases where a resync from
genesis got triggered (observed on seed nodes, not on desktop apps).

Seed nodes and headless apps get shut down automatically.
In case of the desktop app we show a warn popup with shutdown
button and no close button, so we enforce a shutdown to avoid
complications in case the user would continue.
You can view, comment on, or merge this pull request online at:

  https://github.com/bisq-network/bisq/pull/4971

-- Commit Summary --

  * In case a reset of the dao state was triggered we delete

-- File Changes --

    M core/src/main/java/bisq/core/app/BisqHeadlessApp.java (6)
    M core/src/main/java/bisq/core/app/BisqSetup.java (6)
    M core/src/main/java/bisq/core/app/DomainInitialisation.java (11)
    M core/src/main/java/bisq/core/dao/state/DaoStateSnapshotService.java (56)
    M core/src/main/resources/i18n/displayStrings.properties (1)
    M desktop/src/main/java/bisq/desktop/main/MainViewModel.java (5)
    M seednode/src/main/java/bisq/seednode/SeedNodeMain.java (7)

-- Patch Links --

https://github.com/bisq-network/bisq/pull/4971.patch
https://github.com/bisq-network/bisq/pull/4971.diff

-- 
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/pull/4971
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20201218/2c398091/attachment.htm>


More information about the bisq-github mailing list