For testing purposes I want to create some blocks on my computer, not broadcast them to the network, and then rollback my current block in Parity.

In git you would do it like this:

  1. Edit some files
  2. git commit -am 'First test commit'
  3. Make more edits
  4. git commit -am 'Second test commit'
  5. git reset --hard HEAD~2

That is exactly what I want to accomplish in Parity. For this question I am only concerned about the rollback part.


You can't rollback blocks, as of yet.

One possible way to do this would be to be to have a script that performs a basic transactions every few seconds, similar to something referred here.

you can than just delete your blocks using something like parity --light db kill and then re-syncing to current state with parity --light.

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.