What is the limitation of the bitcoin core database in a windows machine? #4746

issue rifaterdemsahin opened this issue on August 21, 2014
  1. rifaterdemsahin commented at 12:54 PM on August 21, 2014: none

    I'm having problems with more than 10.000 private keys , I wonder what is the limitation. What is the best practice of number of keys in bitcoin core wallet? is there a limit in database size ?

  2. laanwj commented at 1:05 PM on August 21, 2014: member

    There is no hard upper limit. Although things can get slower with extreme numbers of transactions/keys, and at some point you may run out of memory. I know of someone with a wallet of 100000+ transactions, and it still works, albeit startup is very slow.

  3. laanwj closed this on Aug 21, 2014

  4. rifaterdemsahin commented at 7:24 AM on August 22, 2014: none

    I understand that the optimum number of keys is around 1000 right ?

  5. TheBlueMatt commented at 7:30 AM on August 22, 2014: member

    There is no optimum number of keys. You should try to use a new key for each transaction received and never spend from a key more than once for security and anonymity reasons, and you should probably not let your wallet get to the point where your box is falling over because you have too many transactions/keys, but the solution to that problem is a new wallet, not key reuse or fewer keys.

  6. laanwj commented at 7:31 AM on August 22, 2014: member

    And anyhow: the number of keys is not what causes scaling issues, it's the number of transactions.

  7. rifaterdemsahin commented at 10:48 AM on August 22, 2014: none

    I calculated I have more than 50.000+ transactions and it is growing. I am afraid it is in "falling over" state.

    Should I backup,cleanup and archive the wallet.dat daily ?

    • I agree with TheBlueMatt from the security perspective.
  8. TheBlueMatt commented at 9:41 PM on August 23, 2014: member

    Depends on what your application is doing, but, yea, stopping bitcoind, archiving the wallet, starting it again with a wallet that you created a while ago, generated a bunch of keys on, and then backed up may be best.

  9. rifaterdemsahin commented at 8:03 AM on August 25, 2014: none

    Thanks TheBlueMatt.

  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-29 03:16 UTC

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