Dev Docs: Specify block halving time in regtest mode

This commit is contained in:
shaulkf 2015-01-09 13:23:47 -05:00 committed by David A. Harding
parent d51a80d063
commit e68d8f2f83

View file

@ -72,7 +72,8 @@ bitcoin-cli -regtest setgenerate true 101
Generate 101 blocks using a special version of the `setgenerate` RPC Generate 101 blocks using a special version of the `setgenerate` RPC
which is only available in regtest mode. This takes about 30 seconds on which is only available in regtest mode. This takes about 30 seconds on
a generic PC. Because this is a new block chain using Bitcoin's default a generic PC. Because this is a new block chain using Bitcoin's default
rules, the first 210,000 blocks pay a block reward of 50 bitcoins. rules, the first blocks pay a block reward of 50 bitcoins. Unlike
mainnet, in regtest mode only the first 150 blocks pay a reward of 50 bitcoins.
However, a block must have 100 confirmations before that reward can be However, a block must have 100 confirmations before that reward can be
spent, so we generate 101 blocks to get access to the coinbase spent, so we generate 101 blocks to get access to the coinbase
transaction from block #1. transaction from block #1.