原始文献 / 论坛帖 / Key pool feature for safer wallet backup
Key pool feature for safer wallet backup
Bitcointalk · 2010-10-09 20:19:33 UTC
SVN rev 163(0.3.13.3 版)有了密钥池功能。预生成的新密钥会在使用前先在队列里“陈化”,这样 wallet.dat 的备份里就包含了你将来会用到的密钥。
目前我把默认池大小设为 100。可以用 -keypool= 配置。注意,增大池大小需要一点时间,所以别调得太夸张。每个密钥约占 1K 磁盘空间。
恢复这方面的事我还没处理。如果你真的还原了一个旧的 wallet.dat,我想你可能得删掉 blk*.dat,让重新下载时重新发现自己的交易。
我只做过中等程度的测试。在经过更多测试之前,你可能不想把它用在网站服务器上。
英文原文
SVN rev 163 (ver 0.3.13.3) has the key pool feature. Pre-generated new keys are aged in a queue before use, so that backups of wallet.dat hold keys you'll use in the future.
For now I made the default pool size 100. It can be configured with -keypool=. Be aware, it takes a little time to increase the pool size, so don't go crazy with it. Disk space is about 1K per key.
I have not addressed the recovery side of this yet. If you actually did restore an old wallet.dat, I think you may have to delete blk*.dat to rediscover your own transactions during the redownload.
I've only tested this moderately. You might not want to use this for a website server until it's had some more testing.
