Continue Syncing Blockchain without reindex for those who did not update their wallets prior to block 344700
Hi all,
I have had a bit of a play around with nodes/swing wallets who did not update their zend daemon prior to the last hardfork with the change in miner reward distribution and the inclusion of the supernode reward allocation.
Previously we were advising people to run zend -reindex
if their block chain was hung up after updating to the latest daemon.
I have done some testing and found that we can skip that and continue syncing after running two command lines.
After you have updated to the latest daemon and your block chain has stalled at block 344,699, run:
zen-cli invalidateblock 000000003dca7e4b46b34f542176542fbbe0fb502d9bd97cd1dde985fd5279a5
This will then mark the block on your copy of the block chain as invalid, and write the following to the debug.log:
2018-10-28 22:14:00 InvalidChainFound: invalid block=000000003dca7e4b46b34f542176542fbbe0fb502d9bd97cd1dde985fd5279a5 height=344699 log2_work=50.06344 date=2018-07-19 12:56:50
2018-10-28 22:14:00 InvalidChainFound: current best=000000000b79e253bee121521e9bc535a58beee99d390dd5dfd715391cc87dbd height=344698 log2_work=50.063425 date=2018-07-19 12:55:17
and it will drop your block height back to 344,698, we then run the next command to reconsider the block:
zen-cli reconsiderblock 000000003dca7e4b46b34f542176542fbbe0fb502d9bd97cd1dde985fd5279a5
After a few moments the zend daemon will reconsider block 344,699 and then continue to sync the correct best chain.
2018-10-28 22:15:03 UpdateTip: new best=000000003dca7e4b46b34f542176542fbbe0fb502d9bd97cd1dde985fd5279a5 height=344699 log2_work=50.06344 tx=2995262 date=2018-07-19 12:56:50 progress=0.896403 cache=0.0MiB(7tx)
2018-10-28 22:15:08 Pre-allocating up to position 0x8000000 in blk00045.dat
2018-10-28 22:15:13 UpdateTip: new best=000000000dcb36093820bbb8b293ef0196e7eab96ded3734346b2561e0cc4ec1 height=344700 log2_work=50.063456 tx=2995311 date=2018-07-19 13:02:21 progress=0.896410 cache=5.2MiB(622tx)
2018-10-28 22:15:19 UpdateTip: new best=0000000012dd615b5d27a5f3a42f7bc5e77efbec342785f2bebc3b8fe73f1243 height=344701 log2_work=50.063472 tx=2995395 date=2018-07-19 13:09:05 progress=0.896421 cache=11.4MiB(778tx)
I hope that you find this useful, and as always, if you have any questions hit me up on Discord or in the comments below.