Where does the mining reward in regtest go?

0

After using the bitcoind -regtest generate 1 command, where does the mining reward go? I tried list accounts and check balance for account "", but the balance always showed 0.000000.

tbraden

Posted 2018-08-28T02:55:11.500

Reputation: 35

Answers

1

To you, but with a delay.

What you're observing is the maturity period: the coins generated by a block can only be moved after there are another 100 blocks on top.

If you generate another 100, your balance will start increasing.

Pieter Wuille

Posted 2018-08-28T02:55:11.500

Reputation: 54 032

Is there a way to specify the mining reward address with bitcoind?PW Kad 2018-10-15T17:27:08.543

1Yes, use the generatetoaddress RPC (which mines to an address of your choice) rather than the generate RPC (which mines to a fresh wallet address).Pieter Wuille 2018-10-15T18:30:49.190