Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jontey/fa55af9edbc2f7d0b7f58b6f092f5e8f to your computer and use it in GitHub Desktop.
Save jontey/fa55af9edbc2f7d0b7f58b6f092f5e8f to your computer and use it in GitHub Desktop.
# 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
@jontey
Copy link
Author

jontey commented Aug 26, 2020

1 folder has 65535 blocks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment