Skip to content

Instantly share code, notes, and snippets.

@leto
Last active December 9, 2019 17:47
Show Gist options
  • Select an option

  • Save leto/094707bc5090af392512743837cbb4a5 to your computer and use it in GitHub Desktop.

Select an option

Save leto/094707bc5090af392512743837cbb4a5 to your computer and use it in GitHub Desktop.
Simulate Hush Full Sync Quickly

Quickly Simulate Full Sync

To do a "real" full sync test, you should BACKUP YOUR WALLET in ~/.komodo/HUSH3 and then do

# BACKUP YOUR WALLET FIRST!
rm -rf ~/.komodo/HUSH3

This must be done occasionally to do full sync test, but it's often overkill to find bugs and it's very slow. Here is a lifehack to speed it up.

# Your wallet is safe, but still back it up!
# Make sure to stop hushd first: hush-cli stop
cd ~/.komodo/HUSH3
rm -rf blocks/ chainstate/ database/

Now you can start hushd (potentially from a newly compiled branch or binary or whatever) and it will do a full sync BUT avoid the very slow initial process of looking for peers. This method preserves peers.dat file and so your node should be able to find valid peers immediately on startup and begin syncing very quickly.

Report bugs

If there is a problem syncing (coredump, or it gets stuck, weird errors), this is very valuable info! Please put the last 100 lines of STDOUT and debug.log into a Private github gist and DM Duke on discord.

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