Skip to content

Instantly share code, notes, and snippets.

@dmdeklerk
Created March 6, 2021 20:42
Show Gist options
  • Save dmdeklerk/5ca0103ce8a775853c8457120b65d721 to your computer and use it in GitHub Desktop.
Save dmdeklerk/5ca0103ce8a775853c8457120b65d721 to your computer and use it in GitHub Desktop.

Instructions to scan and verify your chain

Sometimes you need to scan and verify your chain, this process will wipe the state of your server and rebuilds it by replaying all transactions.

When your node is forked it is advised to both scan and verify your chain read on for how to do that.

The forceScan command

heat.forceScan=true will instruct the server to replay all blocks and rebuild the state.

The forceValidate command

heat.forceValidate=true will also verify all signatures on all transactions, you don't have to set this as the state will be rebuild without this as well.

Example

You would set your HEAT server to rescan and verify all signatures as follows. Remove or set to false the heat.forceValidate= to not verify signatures, this should considerably speed up the process.

docker run -d -p 7733:7733 -p 7755:7755 --restart=on-failure:1 heatcrypto/heatledger:4.0.0 -properties "
heat.forceValidate=true,\
heat.forceScan=true"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment