Skip to content

Instantly share code, notes, and snippets.

@taw00
Last active January 23, 2017 20:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save taw00/4a8dd6d00172e81e96a9970de791c0ff to your computer and use it in GitHub Desktop.
Save taw00/4a8dd6d00172e81e96a9970de791c0ff to your computer and use it in GitHub Desktop.
dash core troubleshooting

Problem: Your wallet or masternode stops syncing the blockchain

How do I know? You notice that your block count (found with getinfo or getblockcount) is not increasing with the chain.

Note: You can find the most current blockcount at https://test.explorer.dash.org (testnet) or https://explorer.dash.org (mainnet)

# This is a testnet block example
# An example from my test masternode, note, I have my configuration and datadir in non-upstream-default locations
[root@f2500 ~]# sudo -u dash dash-cli -conf=/etc/dashcore/dash.conf -datadir=/var/lib/dashcore getblockcount
118800

How do I fix it?

[root@f2500 ~]# sudo -u dash dash-cli -conf=/etc/dashcore/dash.conf -datadir=/var/lib/dashcore mnsync reset
success
  • Then "reconsider" that last block with reconsiderblock...
[root@f2500 ~]# sudo -u dash dash-cli -conf=/etc/dashcore/dash.conf -datadir=/var/lib/dashcore reconsiderblock 0000004b5f21a8a6ce79dd3fcb674f6a0b1f5dc089b03b20c14d27fcc60900b8
[root@f2500 ~]# 

Start watching the blockcount, it should increment.

watch sudo -u dash dash-cli -conf=/etc/dashcore/dash.conf -datadir=/var/lib/dashcore getblockcount
  • If you get a Block not found error after using the reconsiderblock command, you either typo'ed or you need to reindex your blockchain (probably on a fork)

If you are running dashd the daemon:

# Do this as root
systemctl stop dash
sudo -u dash dashd -conf=/etc/dashcore/dash.conf -datadir=/var/lib/dashcore -reindex
``do -u dash dash-cli -conf=/etc/dashcore/dash.conf -datadir=/var/lib/dashcore stop

If you are running GUI wallet instead

  • exit from the GUI interface
  • and then run it again, but this time from the commandline, and with the -reindex option: dash-qt -reindex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment