halving
every 210 blocks the fraction of the reserve a block may pay is cut in half. it starts at one eighth and stops halving at one part in 65,536.
the steps
eight eras drawn as a staircase. the current era is filled.
where the chain is
read from the vault.
the schedule
all fourteen eras.
the first block of an era is the block right after a multiple of 210. block 211 is the first to pay one sixteenth. block 421 is the first to pay one thirty second.
halving here changes how fast the reserve is spent, not how much there is to spend. the same tax arrives either way. a smaller fraction means a larger reserve, and a larger reserve means each coinbase, though a smaller slice, is cut from more.
after era 13 the shift stays at sixteen bits for good. from block 2,731 on, every block pays one part in 65,536 of the reserve.
era = floor((height - 1) / 210)
shift = min(16, 3 + era)
coinbase = reserve >> shift
| era | first block | last block | shift | fraction paid | fraction kept |
|---|---|---|---|---|---|
| 0 | 1 | 210 | 3 | 1/8 | 87.500% |
| 1 | 211 | 420 | 4 | 1/16 | 93.750% |
| 2 | 421 | 630 | 5 | 1/32 | 96.875% |
| 3 | 631 | 840 | 6 | 1/64 | 98.438% |
| 4 | 841 | 1,050 | 7 | 1/128 | 99.219% |
| 5 | 1,051 | 1,260 | 8 | 1/256 | 99.609% |
| 6 | 1,261 | 1,470 | 9 | 1/512 | 99.805% |
| 7 | 1,471 | 1,680 | 10 | 1/1024 | 99.902% |
| 8 | 1,681 | 1,890 | 11 | 1/2048 | 99.951% |
| 9 | 1,891 | 2,100 | 12 | 1/4096 | 99.976% |
| 10 | 2,101 | 2,310 | 13 | 1/8192 | 99.988% |
| 11 | 2,311 | 2,520 | 14 | 1/16384 | 99.994% |
| 12 | 2,521 | 2,730 | 15 | 1/32768 | 99.997% |
| 13 | 2,731 | no end | 16 | 1/65536 | 99.998% |
an idle reserve
what is left of a reserve after n blocks if those blocks brought almost no tax, in era 0.
a block cannot be found without a delivery, so the reserve is never spent while nothing comes in. but if blocks keep coming on tiny deliveries, each one still takes its eighth. this table shows how a reserve drains in that case.
| blocks | reserve left |
|---|---|
| 1 | 87.5% |
| 2 | 76.6% |
| 4 | 58.6% |
| 8 | 34.4% |
| 16 | 11.8% |
| 32 | 1.4% |