<p><code>keypoolsize</code> only shows how many keys are currently in the keypool. It does not reflect the maximum size of the keypool. The <code>keypool=&lt;n&gt;</code> option does not automatically fill the keypool to that size, you will need to refill it by using <code>keypoolrefill</code>.</p>

<p>If after <code>keypoolrefill</code> you still do not see a larger keypool, then that means your bitcoin.conf file is either named incorrectly, located in the wrong location, or formatted incorrectly.</p>

CC BY-SA 4.0
2018-10-25T15:24:21.513Z
2018-10-25T15:24:21.513Z
Ava Chow
<p>I used keypool=10000 in the conf file but bitcoin-cli -getinfo shows "keypoolsize":1000. Why?</p>

CC BY-SA 4.0
2018-10-25T05:57:25.843Z
Try running `keypoolrefill`
Raghav Sood
CC BY-SA 4.0
2018-10-25T06:01:10.077Z
But that will just refill it back to 1000 in case I use a couple of addresses and bring it down to 998, right? I need the size to be expanded.
oktested
CC BY-SA 4.0
2018-10-25T07:44:55.033Z
This sort of thing is almost totally irrelevant with HD wallets.
Claris
<bitcoin.conf><keypool>
Setting keypool size in the conf file
oktested
# Setting keypool size in the conf file

(Asked by: username_0 on 2018-10-25)

I used keypool=10000 in the conf file but bitcoin-cli -getinfo shows "keypoolsize":1000. Why?

**Tags:** bitcoin.conf, keypool

> **Comments:**
> **username_1**: Try running `keypoolrefill`  
> **username_0**: But that will just refill it back to 1000 in case I use a couple of addresses and bring it down to 998, right? I need the size to be expanded.  
> **username_2**: This sort of thing is almost totally irrelevant with HD wallets.  

---

## 1 answers

### Answer by username_3 on 2018-10-25. Score: 2

`keypoolsize` only shows how many keys are currently in the keypool. It does not reflect the maximum size of the keypool. The `keypool=<n>` option does not automatically fill the keypool to that size, you will need to refill it by using `keypoolrefill`.

If after `keypoolrefill` you still do not see a larger keypool, then that means your bitcoin.conf file is either named incorrectly, located in the wrong location, or formatted incorrectly.


---

