What can I do to not lose the data ?

  • Please use text error messages. And give a little information about your setup? OS? Startup parameters etc. – TeeAttack42 Jun 2 at 8:24

You need to replay blockchain.

$ nodeos --replay-blockchain

If it doesn't solve your problem, stop nodeos and run with --hard-replay-blockchain option.

| improve this answer | |
  • I tried both. I'm getting above error after --hard-replay-blockchain – AditiB May 30 at 19:44
  • Delete data/blocks/reversible and data/state directory completely and try again. Be careful not to delete data/blocks/blocks.log. – conr2d May 31 at 14:10
  • I did this. But I ended up losing most of the data. :( – AditiB Jun 1 at 5:22
  • You cannot lose data unless you delete blocks.log. Transactions are stored in blocks.log and state (including accounts, permission, multi-index table etc.) is built by accumulating changes caused by transactions and it can always be restored by replay. If you lose data, you must do something wrong. – conr2d Jun 2 at 7:14
  • I deleted only the reversible folder. Is it possible that my most of the data was in that ? – AditiB Jun 2 at 9:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.