Created
February 6, 2020 07:06
-
-
Save jontey/fa55af9edbc2f7d0b7f58b6f092f5e8f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# If your catapult node crash with some missing blocks, due to the way catapult broker works, the catapult index.dat is updated and buffered in memory before the block is saved to the disk. | |
# On the event of a node crashing, this will cause the block to be unable to recover | |
To start, | |
vim index.dat | |
:set binary ! | |
:%!xxd | |
Edit the text file to the last block height on the disk | |
Before saving the file | |
:%!xxd -r | |
Delete blocks on disk that have size 0 | |
Start server |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
1 folder has 65535 blocks