Created
December 18, 2019 22:48
-
-
Save AndrewWestberg/9a25e238184d5cfc06cd1d49d9f57239 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/bin/bash | |
cd /home/westbam/cardano/storage | |
sqlite3 blocks.sqlite "delete from Blocks where hash in (select bi.hash from BlockInfo bi order by depth desc limit 20);delete from BlockInfo where depth in (select depth from BlockInfo order by depth desc limit 20);update Tags set hash=(select hash from BlockInfo order by depth desc limit 1) where name='HEAD';" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment