6
The initial question asked was as follows, but it turned out to be nothing to do with keypools:
I had keypool=1000 before. Now I started bitcoind (the daemon version) with keypool=10000 option, and it is 2 hours already and bitcoind didn't start up yet. I.e. I still get
error: couldn't connect to serverwhen I try to dobitcoind getbalance.Its a quite fast machine AMD 64bit 4000+ CPU with 10 GB RAM, how long the start-up time can be? And will it be so long every time I start the daemon, or only the first time?
Will future start-up times increase in any noticeable way if I keep keypool=10000 in comparison with 1000? Or any other performance degradation, except this first startup?
Edit: In the end it had nothing to do with keypool=10000. For some unknown reason my local interface was down. I fixed it with:
ifconfig lo up
I killed the bitcoin daemon with kill $PID, started it again and within a minute I could do bitcoind getbalance.
I don't know the answer. But I guess the slower startup is only the first time; after 10000 keys are generated, starting up should be quick. – Meni Rosenfeld – 2012-05-14T15:07:12.737
I would believe it would slow Bitcoin down a bit when each block is validated, as the program will probably have to check each transaction for whether or not it matches every key in the wallet. I don't know how much slower it would go though... – ThePiachu – 2012-05-14T16:57:33.063
@ThePiachu: If there is a hashset of all addresses, scanning the block for relevant transactions should take the same time no matter how many there are. Unless the addresses in the block itself are indexed. – Meni Rosenfeld – 2012-05-14T18:44:12.593