-keypool don't change wallet.dat size #7240

issue bom64 opened this issue on December 21, 2015
  1. bom64 commented at 2:27 PM on December 21, 2015: none

    It look as -keypool is not working if the wallet.dat exist in Windows 10.

    Eg. the wallet.dat file is 88 kbyte.

    Close bitcoin-qt.exe Run bitcoin-qt.exe -keypool=20000

    Expected that the size of wallet.dat file will expend, but is it still 88 kbyte.

    Close bitcoin-qt.exe Rename wallet.dat to wallet_org.dat Run bitcoin-qt.exe -keypool=20000

    Now a new wallet.dat file is created and the file grow to 12,5 MB.

    Bug: It look as -keypool only work when creating a new wallet.dat Tested when the wallet.dat have pwd and without pwd.

    Maybe some user believe that the have created a big key pool and believe that they have backup of the prv keys.... Let os hope that they don't need the backup...

    Donation: 1AcJkAqNNLa2MrLLQdN5oq5CBVX91hTicZ

  2. bom64 renamed this:
    -keypool don't change the size of wallet.dat
    -keypool don't change size of wallet.dat
    on Dec 21, 2015
  3. bom64 renamed this:
    -keypool don't change size of wallet.dat
    -keypool don't change wallet.dat size
    on Dec 21, 2015
  4. jonasschnelli commented at 2:38 PM on December 21, 2015: contributor

    Not sure if we should call this a bug. Once your wallet is created, the keypool can only be refilled by retrieving more address/keys than the pool holds OR by calling keypoolrefill (RPC).

    Also keep in mind, that wallets can be encrypted, auto-keypool-topup would not work for encrypted wallets (users need to enter the password first).

    But we could change the -keypool info text (current: Set key pool size to <n> (default: %u), new maybe something like: Set key pool size to <n> (default: %u, does not refill keypool if wallet already exists).

  5. jonasschnelli added the label Wallet on Dec 21, 2015
  6. bom64 commented at 3:04 PM on December 21, 2015: none

    And some info text to the user when using -keypool when the wallet exist that the commando have no effekt. and a easy way for the user to refill. RPC is API? How do the user call keypoolrefill?

    and update to https://en.bitcoin.it/wiki/Securing_your_wallet "By default there are 100 keys in the key pool. The size of the pool is configurable using the "-keypool" command line argument. "

  7. MarcoFalke commented at 6:23 PM on December 21, 2015: member

    You can type keypoolrefill into the console (Help->Debug window->Console).

    I agree with @jonasschnelli , the help text needs adjustment. @bom64 Could you create a pull request fixing the help text?

  8. bom64 commented at 7:58 PM on December 21, 2015: none

    I have created a pull request fixing and added keys to my wallet.dat: getwalletinfo { "walletversion" : 60000, "balance" : 0.00039900, "unconfirmed_balance" : 0.00000000, "immature_balance" : 0.00000000, "txcount" : 4, "keypoololdest" : 1450683114, "keypoolsize" : 20001, "unlocked_until" : 0 } Tanks for the guideline.

  9. bom64 closed this on Dec 21, 2015

  10. DrahtBot locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-21 15:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me