Reset or backup from a blockchain possible?

-3

i have a coin for my own interests. With this i will learn how works all.

So i have install the daemon on a vps All works fine.

Mining works. And the first 300 blocks i have created.

Now i will back to block 100 or 200. But i don't know how?

It is only one node (1vps) and 1 windows wallet.

Is it enough to delete all files and directorys except the coin.conf and wallet.dat on the vps and in windows?

Or how i can back to block 200?

Many thanks Mark

Mark

Posted 2019-02-08T22:25:33.547

Reputation: 7

Question was closed 2019-02-22T04:59:39.620

Answers

1

invalidateblock "blockhash"

Permanently marks a block as invalid, as if it violated a consensus rule.

Arguments:

  1. "blockhash" (string, required) the hash of the block to mark as invalid

Don't delete the blocks manually, you'll harm the database.

MCCCS

Posted 2019-02-08T22:25:33.547

Reputation: 5 827

Thanks MCCCS for your reply. Understand I correct this works for me when i input the hash from block 201? Then I'm at block 200?Mark 2019-02-09T21:05:52.247

Yes, that's how it works.MCCCS 2019-02-10T06:43:24.570

OK, thanks. And when I setup 2 vps then I must insert this in all XXX-cli or only by one? And restart number 2?Mark 2019-02-10T18:55:26.777

You should do that for both.MCCCS 2019-02-11T12:40:44.853