[bisq-network/bisq] Json dump for Dao state refactoring (#5608)
chimp1984
notifications at github.com
Tue Jul 6 13:46:30 CEST 2021
- Write chainHeight
- Write on new blocks or on parse complete from last persisted block height
- Do not delete json dirs at start
- Write txs and txos from block/s to write
- Add reorg handling to json dump
- Do not load daostate in case the DAO is disabled (not related to json dump aspect)
In case of a reorg we pass the block height of the last persisted snapshot
and delete all blocks and related tx/txos from that block height on.
In case we dont have a snapshot we delete the whole json dir.
It is not tested much yet.
Will require adoption for the explorer nodes by @softsimon - should be either deployed to a branch or waited for merge to master until @softsimon signals readiness.
You can view, comment on, or merge this pull request online at:
https://github.com/bisq-network/bisq/pull/5608
-- Commit Summary --
* Change dao data as json dump behaviour
* Add reorg handling to json dump
* Only load DaoState data if dao is activated
* Extract variable
-- File Changes --
M apitest/src/test/java/bisq/apitest/scenario/bot/script/BotScriptGenerator.java (2)
M common/src/main/java/bisq/common/file/JsonFileManager.java (28)
M core/src/main/java/bisq/core/dao/node/BsqNode.java (25)
M core/src/main/java/bisq/core/dao/node/explorer/ExportJsonFilesService.java (151)
M core/src/main/java/bisq/core/dao/node/full/FullNode.java (6)
M core/src/main/java/bisq/core/dao/node/lite/LiteNode.java (13)
M core/src/main/java/bisq/core/dao/state/DaoStateSnapshotService.java (6)
M core/src/main/java/bisq/core/dao/state/storage/DaoStateStorageService.java (5)
M inventory/src/main/java/bisq/inventory/InventoryMonitor.java (2)
-- Patch Links --
https://github.com/bisq-network/bisq/pull/5608.patch
https://github.com/bisq-network/bisq/pull/5608.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/5608
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20210706/3f7c8ff6/attachment.htm>
More information about the bisq-github
mailing list