[bisq-network/bisq] Fix exception: heightOfLastBlock must match chainHeight (PR #6018)

jmacxx notifications at github.com
Wed Feb 2 05:11:35 CET 2022


Fixes #6016 

If DaoStateStore gets out of sync with BsqBlocks, Bisq ends up in a cycle where it cannot start up.

This PR handles the issue by:
- clearing the DAO state to be rebuilt from resources on the next startup
- triggering a popup informing the user that a restart is needed.

![image](https://user-images.githubusercontent.com/47253594/152091532-bdfc7dec-9f56-4d2a-990d-dbaea35f073a.png)

---

To reproduce the "heightOfLastBlock must match chainHeight" problem, replace your DaoStateStore file with one from a different instance of Bisq that has not been started in a while, so that it is out of sync with your BsqBlocks.

You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Fix exception: heightOfLastBlock must match chainHeight

-- File Changes --

    M core/src/main/java/bisq/core/dao/state/DaoStateSnapshotService.java (23)
    M core/src/main/java/bisq/core/dao/state/storage/DaoStateStorageService.java (8)

-- Patch Links --

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

-- 
Reply to this email directly or view it on GitHub:
https://github.com/bisq-network/bisq/pull/6018
You are receiving this because you are subscribed to this thread.

Message ID: <bisq-network/bisq/pull/6018 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20220201/20ceb06a/attachment-0001.htm>


More information about the bisq-github mailing list