<blockquote>
  <p><code>invalidateblock "blockhash"</code></p>
  
  <blockquote>
    <p>Permanently marks a block as invalid, as if it violated a consensus rule.</p>
    
    <p>Arguments:</p>
    
    <ol>
    <li>"blockhash"   (string, required) the hash of the block to mark as invalid</li>
    </ol>
  </blockquote>
</blockquote>

<p>Don't delete the blocks manually, you'll harm the database.</p>

CC BY-SA 4.0
2019-02-09T21:05:52.247Z
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
CC BY-SA 4.0
2019-02-10T06:43:24.570Z
Yes, that's how it works.
MCCCS
CC BY-SA 4.0
2019-02-10T18:55:26.777Z
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
CC BY-SA 4.0
2019-02-11T12:40:44.853Z
You should do that for both.
MCCCS
CC BY-SA 4.0
2019-02-09T17:25:47.537Z
2019-02-09T17:25:47.537Z
MCCCS
<p>i have a coin for my own interests.
With this i will learn how works all.</p>

<p>So i have install the daemon on a vps
All works fine.</p>

<p>Mining works. And the first 300 blocks i have created.</p>

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

<p>It is only one node (1vps) and 1 windows wallet.</p>

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

<p>Or how i can back to block 200?</p>

<p>Many thanks
Mark</p>

<blockchain><altcoin><bitcoin-core-development><altcoin-development><wallet-development>
Reset or backup from a blockchain possible?
Mark
# Reset or backup from a blockchain possible?

(Asked by: username_0 on 2019-02-08)

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
username_0

**Tags:** blockchain, altcoin, bitcoin-core-development, altcoin-development, wallet-development


---

## 1 answers

### Answer by username_1 on 2019-02-09. Score: 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.

> **Comments:**
> **username_0**: Thanks username_1 for your reply. Understand I correct this works for me when i input the hash from block 201? Then I'm at block 200?  
> **username_1**: Yes, that's how it works.  
> **username_0**: 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?  
> **username_1**: You should do that for both.  

---

