SN-2608 已核对来源,附原文与上下文。
我本来在另一个主题里发,这里再重复一遍,这个主题看起来更切题。
I started posting in the other topic but I'll repeat here, this thread seems more specific to the topic.
备份的主要改进会是预生成的密钥池,以及加载时重新扫描、从区块历史里捞出被漏掉的交易。那样一次备份就能管用很久。
The main backup improvement will be a pre-generated pool of keys and a rescan at load to scrape missed transactions from the block history. Then a backup will last forward for a long time.
我正准备发和你一样的想法,nelisky。
I was starting to post the same idea you said nelisky.
加一个 json-rpc 命令如何:锁定钱包、刷盘、把 wallet.dat 拷贝到你指定的位置,然后解锁?这比密钥池工程量小,也许可以先做。
How about a json-rpc command that locks the wallet, flushes it, copies wallet.dat to a location you specified, then unlocks it? That would be a smaller project than the pooled keys, so maybe it could be done first.
拷贝文件最简单的可移植方法是什么?Boost 里有现成的吗?
What's the simplest portable way to copy a file? Is there something in Boost?
该叫什么名字?也许:
What should it be named? maybe:
backupwallet
backupwallet