<p>You probably haven't gracefully shutdown your node during the first run.</p>

<p>Make sure you always stop your node(s) with <code>./bitcoin-cli -regtest stop</code></p>

CC BY-SA 3.0
2016-10-21T07:14:17.283Z
2016-10-21T07:14:17.283Z
Jonas Schnelli
<p>I am working on a private chain using regtest mode. I have a strange behaviour if i restart the bitcoind process the balance becomes 0.?</p>

<p>i generate 101 new block to get the reward 50BTC. I repeat this operation to be sure but always i get the same result the balance is 0.</p>

<pre><code>before 
C:\WINDOWS\system32&gt;bitcoin-cli -regtest getbalance
8800.00000000
after
C:\WINDOWS\system32&gt;bitcoin-cli -regtest getbalance
0.00000000
</code></pre>

<p>update : the problem was the use of CTRL+C to stop the bitcoind deamon</p>

CC BY-SA 3.0
2016-10-20T21:29:34.450Z
Can you please update your post and show us the commands you use to start and restart bitcoind in regtest mode?
Alin Tomescu
<bitcoind>
bitcoin-cli getbalance 0 after restart
katapulte
# bitcoin-cli getbalance 0 after restart

(Asked by: username_0 on 2016-10-20)

I am working on a private chain using regtest mode. I have a strange behaviour if i restart the bitcoind process the balance becomes 0.?

i generate 101 new block to get the reward 50BTC. I repeat this operation to be sure but always i get the same result the balance is 0.

```
before 
C:\WINDOWS\system32>bitcoin-cli -regtest getbalance
8800.00000000
after
C:\WINDOWS\system32>bitcoin-cli -regtest getbalance
0.00000000

```

update : the problem was the use of CTRL+C to stop the bitcoind deamon

**Tags:** bitcoind

> **Comments:**
> **username_1**: Can you please update your post and show us the commands you use to start and restart bitcoind in regtest mode?  

---

## 1 answers

### Answer by username_2 on 2016-10-21. Score: 2 | Accepted answer

You probably haven't gracefully shutdown your node during the first run.

Make sure you always stop your node(s) with `./bitcoin-cli -regtest stop`


---

